Add warning to generated Doxyfile to edit Doxyfile.in.
[openocd.git] / Makefile.am
1 # not a GNU package. You can remove this line, if
2 # have all needed files, that a GNU package needs
3 AUTOMAKE_OPTIONS = foreign 1.6
4
5 nobase_dist_pkgdata_DATA = \
6         contrib/libdcc/dcc_stdio.c \
7         contrib/libdcc/dcc_stdio.h \
8         contrib/libdcc/example.c \
9         contrib/libdcc/README \
10         contrib/openocd.udev
11
12 SUBDIRS = src doc
13
14 EXTRA_DIST = \
15         Doxyfile.in \
16         tools/logger.pl
17
18 docs: pdf html doxygen
19
20 Doxyfile: $(srcdir)/Doxyfile.in
21         @echo "Creating $@ from $<..."
22         @( \
23           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
24           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
25           sed -e 's,@srcdir\@,$(srcdir),' $< \
26         ) > $@
27
28 doxygen::
29         $(MAKE) Doxyfile
30         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
31
32 distclean-local:
33         rm -rf Doxyfile doxygen
34
35 DISTCLEANFILES = doxygen.log
36
37 MAINTAINERCLEANFILES = \
38         configure \
39         Makefile.in \
40         depcomp \
41         config.guess \
42         config.sub \
43         config.h.in \
44         config.h.in~ \
45         compile \
46         ltmain.sh \
47         missing \
48         aclocal.m4 \
49         install-sh