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 # do not run Jim Tcl tests (esp. during distcheck)
9 check-recursive: SUBDIRS :=
11 nobase_dist_pkgdata_DATA = \
12 contrib/libdcc/dcc_stdio.c \
13 contrib/libdcc/dcc_stdio.h \
14 contrib/libdcc/example.c \
15 contrib/libdcc/README \
16 contrib/60-openocd.rules
28 DIST_SUBDIRS += jimtcl
31 # common flags used in openocd build
32 AM_CFLAGS = $(GCC_WARNINGS)
34 AM_CPPFLAGS = $(HOST_CPPFLAGS)\
36 -I$(top_builddir)/src \
37 -I$(top_srcdir)/src/helper \
38 -DPKGDATADIR=\"$(pkgdatadir)\" \
39 -DBINDIR=\"$(bindir)\"
42 AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
43 -I$(top_builddir)/jimtcl
54 tools/rlink_make_speed_table \
58 libtool: $(LIBTOOL_DEPS)
59 $(SHELL) ./config.status --recheck
61 docs: pdf html doxygen
63 Doxyfile: $(srcdir)/Doxyfile.in
64 @echo "Creating $@ from $<..."
66 echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
67 echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
68 sed -e 's,@srcdir\@,$(srcdir),' \
69 -e 's,@builddir\@,$(builddir),' \
70 -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
71 -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
74 THE_MANUAL = doxygen/latex/refman.pdf
78 doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
79 @if [ -f doxygen/latex/refman.tex ]; then \
80 echo "Creating $(THE_MANUAL)..."; \
81 $(MAKE) $(THE_MANUAL); \
83 echo "Skipping Doxygen PDF..."; \
86 $(THE_MANUAL): %.pdf: %.tex
87 -cd $$(dirname $*) && pdflatex $$(basename $*)
88 -cd $$(dirname $*) && pdflatex $$(basename $*)
91 # command to find paths of script files, relative to TCL_PATH
92 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
93 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
96 if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
97 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
99 for i in $$($(TCL_FILES)); do \
100 j="$(distdir)/$(TCL_PATH)/$$i" && \
101 mkdir -p "$$(dirname $$j)" && \
102 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
106 for i in $$($(TCL_FILES)); do \
107 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
108 mkdir -p "$$(dirname $$j)" && \
109 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
113 rm -rf $(DESTDIR)$(pkgdatadir)/scripts
116 rm -rf Doxyfile doxygen
117 rm -f $(srcdir)/jimtcl/configure.gnu
118 # FIXME: workaround for jimtcl 0.80 only. Remove from jimtcl 0.81
119 rm -f jimtcl/examples.api/Makefile
121 DISTCLEANFILES = doxygen.log
128 MAINTAINERCLEANFILES = \
144 include src/Makefile.am
145 include doc/Makefile.am