ICEPick-C: Add support for warm reset through JTAG controller and provide finer detai...
[openocd.git] / Makefile.am
blob0d20233b4054f9a464b5aba18ca29f7ea5cc6416
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 # make sure we pass the correct jimtcl flags to distcheck
6 DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
8 nobase_dist_pkgdata_DATA = \
9         contrib/libdcc/dcc_stdio.c \
10         contrib/libdcc/dcc_stdio.h \
11         contrib/libdcc/example.c \
12         contrib/libdcc/README \
13         contrib/openocd.udev
15 if INTERNAL_JIMTCL
16 SUBDIRS = jimtcl
17 else
18 SUBDIRS =
19 endif
21 SUBDIRS += src doc
23 EXTRA_DIST = \
24         BUGS \
25         HACKING \
26         NEWTAPS \
27         PATCHES.txt \
28         README.Win32 \
29         Doxyfile.in \
30         tools/logger.pl \
31         contrib/loaders
33 libtool: $(LIBTOOL_DEPS)
34         $(SHELL) ./config.status --recheck
36 docs: pdf html doxygen
38 Doxyfile: $(srcdir)/Doxyfile.in
39         @echo "Creating $@ from $<..."
40         @( \
41           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
42           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
43           sed -e 's,@srcdir\@,$(srcdir),' \
44             -e 's,@builddir\@,$(builddir),' \
45             -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
46             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
47         ) > $@
49 THE_MANUAL = doxygen/latex/refman.pdf
51 doxygen::
52         $(MAKE) Doxyfile
53         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
54         @if [ -f doxygen/latex/refman.tex ]; then \
55                 echo "Creating $(THE_MANUAL)..."; \
56                 $(MAKE) $(THE_MANUAL); \
57         else \
58                 echo "Skipping Doxygen PDF..."; \
59         fi
61 $(THE_MANUAL): %.pdf: %.tex
62         -cd $$(dirname $*) && pdflatex $$(basename $*)
63         -cd $$(dirname $*) && pdflatex $$(basename $*)
65 TCL_PATH = tcl
66 # command to find paths of script files, relative to TCL_PATH
67 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
68                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
70 dist-hook:
71         if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
72                 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
73         fi
74         for i in $$($(TCL_FILES)); do \
75                 j="$(distdir)/$(TCL_PATH)/$$i" && \
76                 mkdir -p "$$(dirname $$j)" && \
77                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
78         done
80 install-data-hook:
81         for i in $$($(TCL_FILES)); do \
82                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
83                 mkdir -p "$$(dirname $$j)" && \
84                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
85         done
87 uninstall-hook:
88         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
90 distclean-local:
91         rm -rf Doxyfile doxygen
92         rm -f $(srcdir)/jimtcl/configure.gnu
93         
94 DISTCLEANFILES = doxygen.log
96 MAINTAINERCLEANFILES = \
97         $(srcdir)/INSTALL \
98         $(srcdir)/configure \
99         $(srcdir)/Makefile.in \
100         $(srcdir)/depcomp \
101         $(srcdir)/config.guess \
102         $(srcdir)/config.sub \
103         $(srcdir)/config.h.in \
104         $(srcdir)/config.h.in~ \
105         $(srcdir)/compile \
106         $(srcdir)/ltmain.sh \
107         $(srcdir)/missing \
108         $(srcdir)/aclocal.m4 \
109         $(srcdir)/install-sh