summaryrefslogtreecommitdiff
path: root/Build/source/texk/lacheck/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/lacheck/Makefile.am')
-rw-r--r--Build/source/texk/lacheck/Makefile.am29
1 files changed, 16 insertions, 13 deletions
diff --git a/Build/source/texk/lacheck/Makefile.am b/Build/source/texk/lacheck/Makefile.am
index a3b9c05e491..a3070bf2302 100644
--- a/Build/source/texk/lacheck/Makefile.am
+++ b/Build/source/texk/lacheck/Makefile.am
@@ -1,36 +1,39 @@
## Makefile.am for the TeX Live subdirectory texk/lacheck/
##
-## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
+## Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4
+LACHECK_TREE = lacheck-$(REV)
+
+## We want to re-distribute the whole original lacheck source tree.
+EXTRA_DIST = $(LACHECK_TREE)
+## Patches applied to the original source tree
+EXTRA_DIST += $(LACHECK_TREE)-PATCHES
+
+# in case of an SVN repository
+dist-hook:
+ rm -rf `find $(distdir) -name .svn`
+
AM_CFLAGS = $(WARNING_CFLAGS)
bin_PROGRAMS = lacheck
-lacheck_SOURCES = lacheck.l
+lacheck_SOURCES = $(LACHECK_TREE)/lacheck.l
nodist_man1_MANS = lacheck.1
-lacheck.1: lacheck.man
+lacheck.1: $(LACHECK_TREE)/lacheck.man
sed -e "s!%%LACHECKREV%%!Release $(REV)!" \
- -e "s!%%LACHECKDATE%%!`date +%Y-%m-%d`!" \
-e "s!%%LACHECKPATH%%!lacheck!" $< > $@
-EXTRA_DIST = lacheck.man
-
CLEANFILES = lacheck.1
dist_check_SCRIPTS = lacheck.test
TESTS = lacheck.test
+TESTS_ENVIRONMENT = LACHECK_TREE=$(LACHECK_TREE)
-EXTRA_DIST += test.tex test.out
-
-CLEANFILES += test.xout
-
-## Not used
-##
-EXTRA_DIST += lacheck.hlp make_vms.com
+CLEANFILES += test.out