2006-06-02 10:36:31 +00:00
|
|
|
# not a GNU package. You can remove this line, if
|
|
|
|
# have all needed files, that a GNU package needs
|
2009-06-30 21:44:48 +00:00
|
|
|
AUTOMAKE_OPTIONS = gnu 1.6
|
2006-06-02 10:36:31 +00:00
|
|
|
|
2011-06-17 08:28:02 +00:00
|
|
|
# make sure we pass the correct jimtcl flags to distcheck
|
2011-09-29 06:12:41 +00:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
|
2011-06-17 08:28:02 +00:00
|
|
|
|
2009-01-16 12:48:00 +00:00
|
|
|
nobase_dist_pkgdata_DATA = \
|
|
|
|
contrib/libdcc/dcc_stdio.c \
|
|
|
|
contrib/libdcc/dcc_stdio.h \
|
|
|
|
contrib/libdcc/example.c \
|
2009-01-21 04:13:16 +00:00
|
|
|
contrib/libdcc/README \
|
|
|
|
contrib/openocd.udev
|
2009-01-16 12:48:00 +00:00
|
|
|
|
2010-11-17 10:26:21 +00:00
|
|
|
if INTERNAL_JIMTCL
|
|
|
|
SUBDIRS = jimtcl
|
|
|
|
else
|
|
|
|
SUBDIRS =
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS += src doc
|
2009-01-20 03:55:38 +00:00
|
|
|
|
2009-05-24 01:08:16 +00:00
|
|
|
EXTRA_DIST = \
|
2011-06-17 11:21:01 +00:00
|
|
|
BUGS \
|
|
|
|
HACKING \
|
|
|
|
NEWTAPS \
|
|
|
|
PATCHES.txt \
|
|
|
|
README.Win32 \
|
2009-05-24 01:08:16 +00:00
|
|
|
Doxyfile.in \
|
2011-06-17 11:21:01 +00:00
|
|
|
tools/logger.pl \
|
|
|
|
contrib/loaders
|
2009-05-12 08:56:22 +00:00
|
|
|
|
2009-06-09 12:01:56 +00:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
2009-05-20 20:52:14 +00:00
|
|
|
docs: pdf html doxygen
|
|
|
|
|
2009-05-24 01:08:16 +00:00
|
|
|
Doxyfile: $(srcdir)/Doxyfile.in
|
2009-05-27 02:01:15 +00:00
|
|
|
@echo "Creating $@ from $<..."
|
|
|
|
@( \
|
|
|
|
echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
|
|
|
|
echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
|
2009-11-17 14:54:56 +00:00
|
|
|
sed -e 's,@srcdir\@,$(srcdir),' \
|
2010-01-10 14:30:06 +00:00
|
|
|
-e 's,@builddir\@,$(builddir),' \
|
2009-11-17 14:54:56 +00:00
|
|
|
-e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
|
|
|
|
-e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
|
2009-05-27 02:01:15 +00:00
|
|
|
) > $@
|
2009-05-24 01:08:16 +00:00
|
|
|
|
2009-11-17 14:04:03 +00:00
|
|
|
THE_MANUAL = doxygen/latex/refman.pdf
|
|
|
|
|
2009-05-20 20:52:14 +00:00
|
|
|
doxygen::
|
2009-05-24 01:08:16 +00:00
|
|
|
$(MAKE) Doxyfile
|
|
|
|
doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
|
2009-11-24 16:59:45 +00:00
|
|
|
@if [ -f doxygen/latex/refman.tex ]; then \
|
|
|
|
echo "Creating $(THE_MANUAL)..."; \
|
|
|
|
$(MAKE) $(THE_MANUAL); \
|
|
|
|
else \
|
|
|
|
echo "Skipping Doxygen PDF..."; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
$(THE_MANUAL): %.pdf: %.tex
|
2009-11-17 14:04:03 +00:00
|
|
|
-cd $$(dirname $*) && pdflatex $$(basename $*)
|
|
|
|
-cd $$(dirname $*) && pdflatex $$(basename $*)
|
2009-05-24 01:08:16 +00:00
|
|
|
|
2009-05-27 06:49:24 +00:00
|
|
|
TCL_PATH = tcl
|
2009-05-27 06:44:43 +00:00
|
|
|
# command to find paths of script files, relative to TCL_PATH
|
2009-06-30 21:44:48 +00:00
|
|
|
TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
|
2009-05-27 06:44:43 +00:00
|
|
|
sed -e 's,^$(srcdir)/$(TCL_PATH),,'
|
|
|
|
|
|
|
|
dist-hook:
|
2011-08-03 13:20:06 +00:00
|
|
|
if test -d $(srcdir)/.git -a \( ! -e $(distdir)/ChangeLog -o -w $(distdir)/ChangeLog \) ; then \
|
|
|
|
git --git-dir $(srcdir)/.git log | $(srcdir)/tools/git2cl/git2cl > $(distdir)/ChangeLog ; \
|
|
|
|
fi
|
2009-05-27 06:44:43 +00:00
|
|
|
for i in $$($(TCL_FILES)); do \
|
|
|
|
j="$(distdir)/$(TCL_PATH)/$$i" && \
|
|
|
|
mkdir -p "$$(dirname $$j)" && \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
for i in $$($(TCL_FILES)); do \
|
|
|
|
j="$(DESTDIR)$(pkgdatadir)/scripts/$$i" && \
|
|
|
|
mkdir -p "$$(dirname $$j)" && \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/$(TCL_PATH)/$$i $$j; \
|
|
|
|
done
|
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -rf $(DESTDIR)$(pkgdatadir)/scripts
|
|
|
|
|
2009-05-24 01:08:16 +00:00
|
|
|
distclean-local:
|
|
|
|
rm -rf Doxyfile doxygen
|
2011-06-27 15:08:56 +00:00
|
|
|
rm -f $(srcdir)/jimtcl/configure.gnu
|
|
|
|
|
2009-05-24 01:08:16 +00:00
|
|
|
DISTCLEANFILES = doxygen.log
|
2009-05-20 20:52:14 +00:00
|
|
|
|
2009-01-20 03:55:38 +00:00
|
|
|
MAINTAINERCLEANFILES = \
|
2009-06-30 21:44:48 +00:00
|
|
|
$(srcdir)/INSTALL \
|
2009-06-09 10:28:16 +00:00
|
|
|
$(srcdir)/configure \
|
|
|
|
$(srcdir)/Makefile.in \
|
|
|
|
$(srcdir)/depcomp \
|
|
|
|
$(srcdir)/config.guess \
|
|
|
|
$(srcdir)/config.sub \
|
|
|
|
$(srcdir)/config.h.in \
|
|
|
|
$(srcdir)/config.h.in~ \
|
|
|
|
$(srcdir)/compile \
|
|
|
|
$(srcdir)/ltmain.sh \
|
|
|
|
$(srcdir)/missing \
|
|
|
|
$(srcdir)/aclocal.m4 \
|
|
|
|
$(srcdir)/install-sh
|