summaryrefslogtreecommitdiff
path: root/Build/source/texk/lacheck/Makefile.am
blob: 8adc0ee6c44511c200cc1933c4d3ffd5393ac221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Makefile.am for the TeX Live subdirectory texk/lacheck/
##
## Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
## 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 -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)'`

AM_CFLAGS = $(WARNING_CFLAGS)

bin_PROGRAMS = lacheck

lacheck_SOURCES = @LACHECK_TREE@/lacheck.l

nodist_man1_MANS = lacheck.1

lacheck.1: $(LACHECK_TREE)/lacheck.man
	$(AM_V_GEN)sed -e "s!%%LACHECKREV%%!Release $(REV)!" \
	    -e "s!%%LACHECKPATH%%!lacheck!" $< > $@

CLEANFILES = lacheck.1

dist_check_SCRIPTS = lacheck.test

TESTS = lacheck.test
TESTS_ENVIRONMENT = LACHECK_TREE=$(LACHECK_TREE)

CLEANFILES += test.out