Add FTDI JTAG driver using MPSSE layer
[openocd/cmsis-dap.git] / Makefile.am
blob8de1dbdb8de5d3718b1c748352d876c23b926ff7
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         README.Win32 \
28         Doxyfile.in \
29         tools/logger.pl \
30         contrib/loaders
32 libtool: $(LIBTOOL_DEPS)
33         $(SHELL) ./config.status --recheck
35 docs: pdf html doxygen
37 Doxyfile: $(srcdir)/Doxyfile.in
38         @echo "Creating $@ from $<..."
39         @( \
40           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
41           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
42           sed -e 's,@srcdir\@,$(srcdir),' \
43             -e 's,@builddir\@,$(builddir),' \
44             -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
45             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
46         ) > $@
48 THE_MANUAL = doxygen/latex/refman.pdf
50 doxygen::
51         $(MAKE) Doxyfile
52         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
53         @if [ -f doxygen/latex/refman.tex ]; then \
54                 echo "Creating $(THE_MANUAL)..."; \
55                 $(MAKE) $(THE_MANUAL); \
56         else \
57                 echo "Skipping Doxygen PDF..."; \
58         fi
60 $(THE_MANUAL): %.pdf: %.tex
61         -cd $$(dirname $*) && pdflatex $$(basename $*)
62         -cd $$(dirname $*) && pdflatex $$(basename $*)
64 TCL_PATH = tcl
65 # command to find paths of script files, relative to TCL_PATH
66 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
67                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
69 dist-hook:
70         if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
71                 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
72         fi
73         for i in $$($(TCL_FILES)); do \
74                 j="$(distdir)/$(TCL_PATH)/$$i" && \
75                 mkdir -p "$$(dirname $$j)" && \
76                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
77         done
79 install-data-hook:
80         for i in $$($(TCL_FILES)); do \
81                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
82                 mkdir -p "$$(dirname $$j)" && \
83                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
84         done
86 uninstall-hook:
87         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
89 distclean-local:
90         rm -rf Doxyfile doxygen
91         rm -f $(srcdir)/jimtcl/configure.gnu
92         
93 DISTCLEANFILES = doxygen.log
95 MAINTAINERCLEANFILES = \
96         $(srcdir)/INSTALL \
97         $(srcdir)/configure \
98         $(srcdir)/Makefile.in \
99         $(srcdir)/depcomp \
100         $(srcdir)/config.guess \
101         $(srcdir)/config.sub \
102         $(srcdir)/config.h.in \
103         $(srcdir)/config.h.in~ \
104         $(srcdir)/compile \
105         $(srcdir)/ltmain.sh \
106         $(srcdir)/missing \
107         $(srcdir)/aclocal.m4 \
108         $(srcdir)/install-sh