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
29 $(wildcard $(srcdir)/NEWS*) \
34 libtool: $(LIBTOOL_DEPS)
35 $(SHELL) ./config.status --recheck
37 docs: pdf html doxygen
39 Doxyfile: $(srcdir)/Doxyfile.in
40 @echo "Creating $@ from $<..."
42 echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
43 echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
44 sed -e 's,@srcdir\@,$(srcdir),' \
45 -e 's,@builddir\@,$(builddir),' \
46 -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
47 -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
50 THE_MANUAL = doxygen/latex/refman.pdf
54 doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
55 @if [ -f doxygen/latex/refman.tex ]; then \
56 echo "Creating $(THE_MANUAL)..."; \
57 $(MAKE) $(THE_MANUAL); \
59 echo "Skipping Doxygen PDF..."; \
62 $(THE_MANUAL): %.pdf: %.tex
63 -cd $$(dirname $*) && pdflatex $$(basename $*)
64 -cd $$(dirname $*) && pdflatex $$(basename $*)
67 # command to find paths of script files, relative to TCL_PATH
68 TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
69 sed -e 's,^$(srcdir)/$(TCL_PATH),,'
72 if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
73 git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
75 for i in $$($(TCL_FILES)); do \
76 j="$(distdir)/$(TCL_PATH)/$$i" && \
77 mkdir -p "$$(dirname $$j)" && \
78 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
82 for i in $$($(TCL_FILES)); do \
83 j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
84 mkdir -p "$$(dirname $$j)" && \
85 $(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
89 rm -rf $(DESTDIR)$(pkgdatadir)/scripts
92 rm -rf Doxyfile doxygen
93 rm -f $(srcdir)/jimtcl/configure.gnu
95 DISTCLEANFILES = doxygen.log
97 MAINTAINERCLEANFILES = \
100 $(srcdir)/Makefile.in \
102 $(srcdir)/config.guess \
103 $(srcdir)/config.sub \
104 $(srcdir)/config.h.in \
105 $(srcdir)/config.h.in~ \
107 $(srcdir)/ltmain.sh \
109 $(srcdir)/aclocal.m4 \