Add support for the lpc2460 target
[openocd/dsp568013.git] / Makefile.am
blobb31bcea9195be838ac5fe08c30afd082df69fdb8
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 if INTERNAL_JIMTCL
13 SUBDIRS = jimtcl
14 else
15 SUBDIRS =
16 endif
18 SUBDIRS += src doc
20 EXTRA_DIST = \
21         Doxyfile.in \
22         tools/logger.pl
24 libtool: $(LIBTOOL_DEPS)
25         $(SHELL) ./config.status --recheck
27 docs: pdf html doxygen
29 Doxyfile: $(srcdir)/Doxyfile.in
30         @echo "Creating $@ from $<..."
31         @( \
32           echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
33           echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
34           sed -e 's,@srcdir\@,$(srcdir),' \
35             -e 's,@builddir\@,$(builddir),' \
36             -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
37             -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
38         ) > $@
40 THE_MANUAL = doxygen/latex/refman.pdf
42 doxygen::
43         $(MAKE) Doxyfile
44         doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
45         @if [ -f doxygen/latex/refman.tex ]; then \
46                 echo "Creating $(THE_MANUAL)..."; \
47                 $(MAKE) $(THE_MANUAL); \
48         else \
49                 echo "Skipping Doxygen PDF..."; \
50         fi
52 $(THE_MANUAL): %.pdf: %.tex
53         -cd $$(dirname $*) && pdflatex $$(basename $*)
54         -cd $$(dirname $*) && pdflatex $$(basename $*)
56 TCL_PATH = tcl
57 # command to find paths of script files, relative to TCL_PATH
58 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
59                 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
61 dist-hook:
62         for i in $$($(TCL_FILES)); do \
63                 j="$(distdir)/$(TCL_PATH)/$$i" && \
64                 mkdir -p "$$(dirname $$j)" && \
65                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
66         done
68 install-data-hook:
69         for i in $$($(TCL_FILES)); do \
70                 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
71                 mkdir -p "$$(dirname $$j)" && \
72                 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
73         done
75 uninstall-hook:
76         rm -rf $(DESTDIR)$(pkgdatadir)/scripts
79 distclean-local:
80         rm -rf Doxyfile doxygen
82 DISTCLEANFILES = doxygen.log
84 MAINTAINERCLEANFILES = \
85         $(srcdir)/INSTALL \
86         $(srcdir)/configure \
87         $(srcdir)/Makefile.in \
88         $(srcdir)/depcomp \
89         $(srcdir)/config.guess \
90         $(srcdir)/config.sub \
91         $(srcdir)/config.h.in \
92         $(srcdir)/config.h.in~ \
93         $(srcdir)/compile \
94         $(srcdir)/ltmain.sh \
95         $(srcdir)/missing \
96         $(srcdir)/aclocal.m4 \
97         $(srcdir)/install-sh