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/99-openocd.rules
25 DIST_SUBDIRS += jimtcl
28 # common flags used in openocd build
29 AM_CFLAGS = $(GCC_WARNINGS)
31 AM_CPPFLAGS = $(HOST_CPPFLAGS)\
33 -I$(top_builddir)/src \
34 -I$(top_srcdir)/src/helper \
35 -DPKGDATADIR=\"$(pkgdatadir)\" \
36 -DBINDIR=\"$(bindir)\"
39 AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
40 -I$(top_builddir)/jimtcl
48 $(wildcard $(srcdir)/NEWS*) \
51 tools/rlink_make_speed_table \
55 libtool: $(LIBTOOL_DEPS)
56 $(SHELL) ./config.status --recheck
58 docs: pdf html doxygen
60 Doxyfile: $(srcdir)/Doxyfile.in
61 @echo "Creating $@ from $<..."
63 echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
64 echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
65 sed -e 's,@srcdir\@,$(srcdir),' \
66 -e 's,@builddir\@,$(builddir),' \
67 -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
68 -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
71 THE_MANUAL = doxygen/latex/refman.pdf
75 doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
76 @if [ -f doxygen/latex/refman.tex ]; then \
77 echo "Creating $(THE_MANUAL)..."; \
78 $(MAKE) $(THE_MANUAL); \
80 echo "Skipping Doxygen PDF..."; \
83 $(THE_MANUAL): %.pdf: %.tex
84 -cd $$(dirname $*) && pdflatex $$(basename $*)
85 -cd $$(dirname $*) && pdflatex $$(basename $*)
88 # command to find paths of script files, relative to TCL_PATH
89 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
90 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
93 if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
94 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
96 for i in $$($(TCL_FILES)); do \
97 j="$(distdir)/$(TCL_PATH)/$$i" && \
98 mkdir -p "$$(dirname $$j)" && \
99 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
103 for i in $$($(TCL_FILES)); do \
104 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
105 mkdir -p "$$(dirname $$j)" && \
106 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
110 rm -rf $(DESTDIR)$(pkgdatadir)/scripts
113 rm -rf Doxyfile doxygen
114 rm -f $(srcdir)/jimtcl/configure.gnu
116 DISTCLEANFILES = doxygen.log
123 MAINTAINERCLEANFILES = \
139 include src/Makefile.am
140 include doc/Makefile.am