summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/am/luatangle.am
blob: 75fa50ca29de4c3e4e89cbe197741d26a3e43afe (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
## 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
	@$(web2c) luatangle
luatangle-web2c: luatangle.p $(web2c_depend)
	@$(web2c) luatangle

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
##
EXTRA_DIST += luatexdir/luatangle.test

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

DISTCLEANFILES += cftest.p