Fix make docs rule to work with out-of-tree builds.
[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 = Doxyfile
15
16 docs: pdf html doxygen
17
18 doxygen::
19         (cd $(srcdir) && doxygen Doxyfile 2>&1 | perl tools/logger.pl ) > doxygen.log
20
21 doxygen-clean:
22         rm -f -r doxygen doxygen.log
23
24 MAINTAINERCLEANFILES = \
25         configure \
26         Makefile.in \
27         depcomp \
28         config.guess \
29         config.sub \
30         config.h.in \
31         config.h.in~ \
32         compile \
33         ltmain.sh \
34         missing \
35         aclocal.m4 \
36         install-sh