ARM: add "core_type" field to "struct arm"
[openocd.git] / Makefile.am
blobc06771204b218920a926ca9312d958a2b6347cf0
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,@doxygen_as_html\@,$(doxygen_as_html),' \
30             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
31         ) > $@
33 THE_MANUAL = doxygen/latex/refman.pdf
35 doxygen::
36         $(MAKE) Doxyfile
37         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
38         $(MAKE) $(THE_MANUAL)
40 %.pdf: %.tex
41         -cd $$(dirname $*) && pdflatex $$(basename $*)
42         -cd $$(dirname $*) && pdflatex $$(basename $*)
44 TCL_PATH = tcl
45 # command to find paths of script files, relative to TCL_PATH
46 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
47                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
49 dist-hook:
50         for i in $$($(TCL_FILES)); do \
51                 j="$(distdir)/$(TCL_PATH)/$$i" && \
52                 mkdir -p "$$(dirname $$j)" && \
53                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
54         done
56 install-data-hook:
57         for i in $$($(TCL_FILES)); do \
58                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
59                 mkdir -p "$$(dirname $$j)" && \
60                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
61         done
63 uninstall-hook:
64         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
67 distclean-local:
68         rm -rf Doxyfile doxygen
70 DISTCLEANFILES = doxygen.log
72 MAINTAINERCLEANFILES = \
73         $(srcdir)/INSTALL \
74         $(srcdir)/configure \
75         $(srcdir)/Makefile.in \
76         $(srcdir)/depcomp \
77         $(srcdir)/config.guess \
78         $(srcdir)/config.sub \
79         $(srcdir)/config.h.in \
80         $(srcdir)/config.h.in~ \
81         $(srcdir)/compile \
82         $(srcdir)/ltmain.sh \
83         $(srcdir)/missing \
84         $(srcdir)/aclocal.m4 \
85         $(srcdir)/install-sh