summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/am/luatangle.am
blob: 63e8d9b3f31a2aba571d87fcd50053ade510eb15 (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
36
## texk/web2c/luatexdir/am/luatangle.am: Makefile fragment for luatangle.
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.

## luatangle
##
if LUATEX
bin_PROGRAMS += luatangle
endif LUATEX
EXTRA_PROGRAMS += luatangle

nodist_luatangle_SOURCES = luatangle.c luatangle.h
luatangle.c luatangle.h: luatangle-web2c
luatangle-web2c: $(web2c_depend) luatangle.p
	$(web2c) luatangle
	echo timestamp >$@
	touch luatangle.c luatangle.h

EXTRA_DIST += $(luatangle_sources)

luatangle_sources = luatexdir/luatangle.web luatexdir/luatangle.ch
luatangle.p: tangle$(EXEEXT) $(luatangle_sources)
	WEBINPUTS=$(srcdir)/luatexdir $(buildenv) $(TANGLE) luatangle luatangle

DISTCLEANFILES += luatangle.c luatangle.h luatangle-web2c luatangle.p

## Tests
##
dist_check_SCRIPTS += luatexdir/luatangle.test

if LUATEX
TESTS += luatexdir/luatangle.test
endif LUATEX

DISTCLEANFILES += cftest.p