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)
12 nobase_dist_pkgdata_DATA = \
13 contrib/libdcc/dcc_stdio.c \
14 contrib/libdcc/dcc_stdio.h \
15 contrib/libdcc/example.c \
16 contrib/libdcc/README \
17 contrib/60-openocd.rules
29 DIST_SUBDIRS += jimtcl
32 # common flags used in openocd build
33 AM_CFLAGS = $(GCC_WARNINGS)
35 AM_CPPFLAGS = $(HOST_CPPFLAGS)\
37 -I$(top_builddir)/src \
38 -I$(top_srcdir)/src/helper \
39 -DPKGDATADIR=\"$(pkgdatadir)\" \
40 -DBINDIR=\"$(bindir)\"
43 AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
44 -I$(top_builddir)/jimtcl
46 EXTRA_DIST_NEWS != ls $(srcdir)/NEWS-*
56 tools/rlink_make_speed_table \
60 libtool: $(LIBTOOL_DEPS)
61 $(SHELL) ./config.status --recheck
63 docs: pdf html doxygen
65 Doxyfile: $(srcdir)/Doxyfile.in
66 @echo "Creating $@ from $<..."
68 echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
69 echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
70 sed -e 's,@srcdir\@,$(srcdir),' \
71 -e 's,@builddir\@,$(builddir),' \
72 -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
73 -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
76 THE_MANUAL = doxygen/latex/refman.pdf
80 doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
81 @if [ -f doxygen/latex/refman.tex ]; then \
82 echo "Creating $(THE_MANUAL)..."; \
83 $(MAKE) $(THE_MANUAL); \
85 echo "Skipping Doxygen PDF..."; \
88 $(THE_MANUAL): %.pdf: %.tex
89 -cd $$(dirname $*) && pdflatex $$(basename $*)
90 -cd $$(dirname $*) && pdflatex $$(basename $*)
93 # command to find paths of script files, relative to TCL_PATH
94 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
95 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
98 if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
99 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
101 for i in $$($(TCL_FILES)); do \
102 j="$(distdir)/$(TCL_PATH)/$$i" && \
103 mkdir -p "$$(dirname $$j)" && \
104 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
108 for i in $$($(TCL_FILES)); do \
109 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
110 mkdir -p "$$(dirname $$j)" && \
111 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
115 rm -rf $(DESTDIR)$(pkgdatadir)/scripts
118 rm -rf Doxyfile doxygen
119 rm -f $(srcdir)/jimtcl/configure.gnu
121 DISTCLEANFILES = doxygen.log
128 MAINTAINERCLEANFILES = \
144 include src/Makefile.am
145 include doc/Makefile.am