summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex/Makefile.am
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-24 09:00:18 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-24 09:00:18 +0000
commitc1841336503cc8eb2355c2eab40012c856f18369 (patch)
treecc621dbfe9646083a4ae860a614f291bdb97ce58 /Build/source/texk/chktex/Makefile.am
parent5c61483aad70d3170b38c8c4a5b74d6f1c7581fd (diff)
chktex: Move from utils/ to texk/, now using kpathsea
git-svn-id: svn://tug.org/texlive/trunk@27137 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/chktex/Makefile.am')
-rw-r--r--Build/source/texk/chktex/Makefile.am97
1 files changed, 97 insertions, 0 deletions
diff --git a/Build/source/texk/chktex/Makefile.am b/Build/source/texk/chktex/Makefile.am
new file mode 100644
index 00000000000..ae35a3363f7
--- /dev/null
+++ b/Build/source/texk/chktex/Makefile.am
@@ -0,0 +1,97 @@
+## Makefile.am for the TeX Live subdirectory texk/chktex/
+##
+## Copyright (C) 2010-2012 Peter Breitenlohner <tex-live@tug.org>
+## You may freely use, modify and/or distribute this file.
+##
+#************************************************************************
+#
+# Adapted for TeX Live from chktex/Makefile.in
+#
+#************************************************************************
+##
+ACLOCAL_AMFLAGS = -I ../../m4
+
+## We want to re-distribute the whole original chktex source tree.
+##
+## With current automake (1.10.2) 'make distcheck' fails when
+## DISTFILES contains a directory and files in that directory.
+## Thus nodist_* for all files in $(CHKTEX_TREE).
+EXTRA_DIST = $(CHKTEX_TREE)
+
+## Patches applied to the original source tree
+##
+EXTRA_DIST += $(CHKTEX_TREE)-PATCHES
+
+# in case of an SVN repository
+dist-hook:
+ rm -rf `find $(distdir) -name .svn`
+
+INCLUDES = $(KPATHSEA_INCLUDES)
+AM_CPPFLAGS = -DKPATHSEA
+AM_CFLAGS = $(WARNING_CFLAGS)
+
+bin_PROGRAMS = chktex
+
+chktex_SOURCES = \
+ $(CHKTEX_TREE)/ChkTeX.c \
+ $(CHKTEX_TREE)/ChkTeX.h \
+ $(CHKTEX_TREE)/FindErrs.c \
+ $(CHKTEX_TREE)/FindErrs.h \
+ $(CHKTEX_TREE)/OpSys.c \
+ $(CHKTEX_TREE)/OpSys.h \
+ $(CHKTEX_TREE)/Resource.c \
+ $(CHKTEX_TREE)/Resource.h \
+ $(CHKTEX_TREE)/Utility.c \
+ $(CHKTEX_TREE)/Utility.h \
+ $(CHKTEX_TREE)/types.h
+
+$(chktex_OBJECTS): $(KPATHSEA_DEPEND)
+
+LDADD = $(KPATHSEA_LIBS)
+
+man_MANS = \
+ $(CHKTEX_TREE)/chktex.1 \
+ $(CHKTEX_TREE)/chkweb.1 \
+ $(CHKTEX_TREE)/deweb.1
+
+perl_scripts = deweb
+scriptsdir = texmf/scripts/chktex
+nodist_bin_SCRIPTS =
+
+include $(srcdir)/../../texk/am/script_links.am
+
+texmfdir = $(datarootdir)/$(scriptsdir)
+nodist_texmf_SCRIPTS = $(perl_scripts:=.pl)
+
+install-data-hook: install-perl-links
+uninstall-hook: uninstall-links
+
+if !WIN32
+bin_SCRIPTS = $(CHKTEX_TREE)/chkweb
+endif !WIN32
+
+# resource file
+configdir = $(datarootdir)/texmf/chktex
+
+config_DATA = $(CHKTEX_TREE)/chktexrc
+
+# documentation
+pdfdocdir = $(datarootdir)/texmf/doc/chktex
+
+dist_pdfdoc_DATA = $(CHKTEX_TREE)/ChkTeX.pdf
+
+CLEANFILES = $(nodist_bin_SCRIPTS)
+
+## Rebuild libkpathsea
+@KPATHSEA_RULE@
+
+## Tests
+##
+TESTS = chktex.test
+
+TESTS_ENVIRONMENT = CHKTEX_TREE=$(CHKTEX_TREE)
+
+EXTRA_DIST += chktex.test
+
+CLEANFILES += chktest
+