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-09-29 01:12:41 -05:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
|
2011-06-17 03:28:02 -05:00
|
|
|
|
2016-08-16 01:52:28 -05:00
|
|
|
# do not run Jim Tcl tests (esp. during distcheck)
|
2020-12-23 12:15:02 -06:00
|
|
|
check-recursive: SUBDIRS :=
|
2016-08-16 01:52:28 -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 \
|
2015-06-05 08:45:49 -05:00
|
|
|
contrib/60-openocd.rules
|
2009-01-16 06:48:00 -06:00
|
|
|
|
2010-11-17 04:26:21 -06:00
|
|
|
SUBDIRS =
|
2016-11-06 13:19:26 -06:00
|
|
|
DIST_SUBDIRS =
|
|
|
|
bin_PROGRAMS =
|
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
info_TEXINFOS =
|
|
|
|
dist_man_MANS =
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
|
|
|
if INTERNAL_JIMTCL
|
|
|
|
SUBDIRS += jimtcl
|
|
|
|
DIST_SUBDIRS += jimtcl
|
2010-11-17 04:26:21 -06:00
|
|
|
endif
|
|
|
|
|
2016-11-06 13:19:26 -06:00
|
|
|
# common flags used in openocd build
|
|
|
|
AM_CFLAGS = $(GCC_WARNINGS)
|
|
|
|
|
|
|
|
AM_CPPFLAGS = $(HOST_CPPFLAGS)\
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_builddir)/src \
|
|
|
|
-I$(top_srcdir)/src/helper \
|
|
|
|
-DPKGDATADIR=\"$(pkgdatadir)\" \
|
|
|
|
-DBINDIR=\"$(bindir)\"
|
2009-01-19 21:55:38 -06:00
|
|
|
|
2016-11-06 13:19:26 -06:00
|
|
|
if INTERNAL_JIMTCL
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/jimtcl \
|
|
|
|
-I$(top_builddir)/jimtcl
|
|
|
|
endif
|
|
|
|
EXTRA_DIST += \
|
2011-06-17 06:21:01 -05:00
|
|
|
BUGS \
|
|
|
|
HACKING \
|
|
|
|
NEWTAPS \
|
2013-09-11 16:05:16 -05:00
|
|
|
README.Windows \
|
2021-01-23 04:54:04 -06:00
|
|
|
README.macOS \
|
2020-12-07 15:51:46 -06:00
|
|
|
$(EXTRA_DIST_NEWS) \
|
2009-05-23 20:08:16 -05:00
|
|
|
Doxyfile.in \
|
2020-12-12 04:50:56 -06:00
|
|
|
LICENSES/license-rules.txt \
|
2020-12-10 16:59:01 -06:00
|
|
|
LICENSES/preferred/BSD-1-Clause \
|
2017-12-28 09:27:15 -06:00
|
|
|
LICENSES/preferred/BSD-2-Clause \
|
2017-12-28 09:27:16 -06:00
|
|
|
LICENSES/preferred/BSD-3-Clause \
|
2020-12-07 08:28:16 -06:00
|
|
|
LICENSES/preferred/GFDL-1.2 \
|
|
|
|
LICENSES/preferred/gfdl-1.2.texi.readme \
|
2020-04-25 10:19:28 -05:00
|
|
|
LICENSES/preferred/GPL-2.0 \
|
2020-12-07 16:25:39 -06:00
|
|
|
LICENSES/stand-alone/GPL-3.0 \
|
2011-06-17 06:21:01 -05:00
|
|
|
tools/logger.pl \
|
2014-01-27 12:21:16 -06:00
|
|
|
tools/rlink_make_speed_table \
|
|
|
|
tools/st7_dtc_as \
|
2014-03-29 14:05:19 -05:00
|
|
|
contrib
|
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
|
2012-08-02 07:14:47 -05:00
|
|
|
TCL_FILES = find $(srcdir)/$(TCL_PATH) -name '*.cfg' -o -name '*.tcl' -o -name '*.txt' | \
|
2009-05-27 01:44:43 -05:00
|
|
|
sed -e 's,^$(srcdir)/$(TCL_PATH),,'
|
|
|
|
|
|
|
|
dist-hook:
|
2011-08-03 08:20:06 -05: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 01:44:43 -05: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-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
|
2020-11-29 15:25:37 -06:00
|
|
|
# FIXME: workaround for jimtcl 0.80 only. Remove from jimtcl 0.81
|
|
|
|
rm -f jimtcl/examples.api/Makefile
|
2013-09-11 16:05:16 -05:00
|
|
|
|
2009-05-23 20:08:16 -05:00
|
|
|
DISTCLEANFILES = doxygen.log
|
2009-05-20 15:52:14 -05:00
|
|
|
|
2016-11-06 13:19:26 -06:00
|
|
|
METASOURCES = AUTO
|
|
|
|
|
|
|
|
BUILT_SOURCES =
|
|
|
|
CLEANFILES =
|
|
|
|
|
2009-01-19 21:55:38 -06:00
|
|
|
MAINTAINERCLEANFILES = \
|
2016-11-06 13:19:26 -06:00
|
|
|
%D%/INSTALL \
|
|
|
|
%D%/configure \
|
|
|
|
%D%/Makefile.in \
|
|
|
|
%D%/depcomp \
|
|
|
|
%D%/config.guess \
|
|
|
|
%D%/config.sub \
|
|
|
|
%D%/config.h.in \
|
|
|
|
%D%/config.h.in~ \
|
|
|
|
%D%/compile \
|
|
|
|
%D%/ltmain.sh \
|
|
|
|
%D%/missing \
|
|
|
|
%D%/aclocal.m4 \
|
|
|
|
%D%/install-sh \
|
|
|
|
%D%/texinfo.tex
|
|
|
|
|
|
|
|
include src/Makefile.am
|
|
|
|
include doc/Makefile.am
|