2006-06-02 05:36:31 -05:00
|
|
|
# not a GNU package. You can remove this line, if
|
|
|
|
# have all needed files, that a GNU package needs
|
2009-06-30 16:44:48 -05:00
|
|
|
AUTOMAKE_OPTIONS = gnu 1.6
|
2006-06-02 05:36:31 -05:00
|
|
|
|
2011-06-17 03:28:02 -05:00
|
|
|
# make sure we pass the correct jimtcl flags to distcheck
|
2011-07-18 08:02:31 -05:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --with-jim-ext=nvp --disable-lineedit --disable-install-jim
|
2011-06-17 03:28:02 -05:00
|
|
|
|
2009-01-16 06:48:00 -06:00
|
|
|
nobase_dist_pkgdata_DATA = \
|
|
|
|
contrib/libdcc/dcc_stdio.c \
|
|
|
|
contrib/libdcc/dcc_stdio.h \
|
|
|
|
contrib/libdcc/example.c \
|
2009-01-20 22:13:16 -06:00
|
|
|
contrib/libdcc/README \
|
|
|
|
contrib/openocd.udev
|
2009-01-16 06:48:00 -06:00
|
|
|
|
2010-11-17 04:26:21 -06:00
|
|
|
if INTERNAL_JIMTCL
|
|
|
|
SUBDIRS = jimtcl
|
|
|
|
else
|
|
|
|
SUBDIRS =
|
|
|
|
endif
|
|
|
|
|
|
|
|
SUBDIRS += src doc
|
2009-01-19 21:55:38 -06:00
|
|
|
|
2009-05-23 20:08:16 -05:00
|
|
|
EXTRA_DIST = \
|
2011-06-17 06:21:01 -05:00
|
|
|
BUGS \
|
|
|
|
HACKING \
|
|
|
|
NEWTAPS \
|
|
|
|
PATCHES.txt \
|
|
|
|
README.Win32 \
|
2009-05-23 20:08:16 -05:00
|
|
|
Doxyfile.in \
|
2011-06-17 06:21:01 -05:00
|
|
|
tools/logger.pl \
|
|
|
|
contrib/loaders
|
2009-05-12 03:56:22 -05:00
|
|
|
|
2009-06-09 07:01:56 -05:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
2009-05-20 15:52:14 -05:00
|
|
|
docs: pdf html doxygen
|
|
|
|
|
2009-05-23 20:08:16 -05:00
|
|
|
Doxyfile: $(srcdir)/Doxyfile.in
|
2009-05-26 21:01:15 -05:00
|
|
|
@echo "Creating $@ from $<..."
|
|
|
|
@( \
|
|
|
|
echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
|
|
|
|
echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
|
2009-11-17 08:54:56 -06:00
|
|
|
sed -e 's,@srcdir\@,$(srcdir),' \
|
2010-01-10 08:30:06 -06:00
|
|
|
-e 's,@builddir\@,$(builddir),' \
|
2009-11-17 08:54:56 -06:00
|
|
|
-e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
|
|
|
|
-e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
|
2009-05-26 21:01:15 -05:00
|
|
|
) > $@
|
2009-05-23 20:08:16 -05:00
|
|
|
|
2009-11-17 08:04:03 -06:00
|
|
|
THE_MANUAL = doxygen/latex/refman.pdf
|
|
|
|
|
2009-05-20 15:52:14 -05:00
|
|
|
doxygen::
|
2009-05-23 20:08:16 -05:00
|
|
|
$(MAKE) Doxyfile
|
|
|
|
doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
|
2009-11-24 10:59:45 -06: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 08:04:03 -06:00
|
|
|
-cd $$(dirname $*) && pdflatex $$(basename $*)
|
|
|
|
-cd $$(dirname $*) && pdflatex $$(basename $*)
|
2009-05-23 20:08:16 -05:00
|
|
|
|
2009-05-27 01:49:24 -05:00
|
|
|
TCL_PATH = tcl
|
2009-05-27 01:44:43 -05:00
|
|
|
# command to find paths of script files, relative to TCL_PATH
|
2009-06-30 16:44:48 -05:00
|
|
|
TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' | \
|
2009-05-27 01:44:43 -05:00
|
|
|
sed -e 's,^$(srcdir)/$(TCL_PATH),,'
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
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-23 20:08:16 -05:00
|
|
|
distclean-local:
|
|
|
|
rm -rf Doxyfile doxygen
|
2011-06-27 10:08:56 -05:00
|
|
|
rm -f $(srcdir)/jimtcl/configure.gnu
|
|
|
|
|
2009-05-23 20:08:16 -05:00
|
|
|
DISTCLEANFILES = doxygen.log
|
2009-05-20 15:52:14 -05:00
|
|
|
|
2009-01-19 21:55:38 -06:00
|
|
|
MAINTAINERCLEANFILES = \
|
2009-06-30 16:44:48 -05:00
|
|
|
$(srcdir)/INSTALL \
|
2009-06-09 05:28:16 -05: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
|