ARM ADIv5: messaging tweaks
[openocd/ellerodev.git] / Makefile.am
blob7d42fd3f7e0d90a0ebeeafa85c196e8f9c749fb0
1 # not a GNU package. You can remove this line, if
2 # have all needed files, that a GNU package needs
3 AUTOMAKE_OPTIONS = gnu 1.6
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
12 SUBDIRS = src doc
14 EXTRA_DIST = \
15         Doxyfile.in \
16         tools/logger.pl
18 libtool: $(LIBTOOL_DEPS)
19         $(SHELL) ./config.status --recheck
21 docs: pdf html doxygen
23 Doxyfile: $(srcdir)/Doxyfile.in
24         @echo "Creating $@ from $<..."
25         @( \
26           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
27           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
28           sed -e 's,@srcdir\@,$(srcdir),' \
29             -e 's,@builddir\@,$(builddir),' \
30             -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
31             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
32         ) > $@
34 THE_MANUAL = doxygen/latex/refman.pdf
36 doxygen::
37         $(MAKE) Doxyfile
38         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
39         @if [ -f doxygen/latex/refman.tex ]; then \
40                 echo "Creating $(THE_MANUAL)..."; \
41                 $(MAKE) $(THE_MANUAL); \
42         else \
43                 echo "Skipping Doxygen PDF..."; \
44         fi
46 $(THE_MANUAL): %.pdf: %.tex
47         -cd $$(dirname $*) && pdflatex $$(basename $*)
48         -cd $$(dirname $*) && pdflatex $$(basename $*)
50 TCL_PATH = tcl
51 # command to find paths of script files, relative to TCL_PATH
52 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
53                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
55 dist-hook:
56         for i in $$($(TCL_FILES)); do \
57                 j="$(distdir)/$(TCL_PATH)/$$i" && \
58                 mkdir -p "$$(dirname $$j)" && \
59                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
60         done
62 install-data-hook:
63         for i in $$($(TCL_FILES)); do \
64                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
65                 mkdir -p "$$(dirname $$j)" && \
66                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
67         done
69 uninstall-hook:
70         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
73 distclean-local:
74         rm -rf Doxyfile doxygen
76 DISTCLEANFILES = doxygen.log
78 MAINTAINERCLEANFILES = \
79         $(srcdir)/INSTALL \
80         $(srcdir)/configure \
81         $(srcdir)/Makefile.in \
82         $(srcdir)/depcomp \
83         $(srcdir)/config.guess \
84         $(srcdir)/config.sub \
85         $(srcdir)/config.h.in \
86         $(srcdir)/config.h.in~ \
87         $(srcdir)/compile \
88         $(srcdir)/ltmain.sh \
89         $(srcdir)/missing \
90         $(srcdir)/aclocal.m4 \
91         $(srcdir)/install-sh