summaryrefslogtreecommitdiff
path: root/Build/source/utils/vlna/Makefile.am
blob: c9fd807c90d76c5749f844a5c9ba6d30dd34cec9 (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
37
38
39
40
41
42
43
## Makefile.am for the TeX Live subdirectory utils/vlna/
##
## Copyright (C) 2008-2011 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
ACLOCAL_AMFLAGS = -I ../../m4

## We want to re-distribute the whole original vlna source tree.
EXTRA_DIST = $(VLNA_TREE)
## Patches applied to the original source tree
EXTRA_DIST += $(VLNA_TREE)-PATCHES

# in case of an SVN repository
dist-hook:
	rm -rf `find $(distdir) -name .svn`

AM_CFLAGS = $(WARNING_CFLAGS)

bin_PROGRAMS = vlna
man1_MANS = $(VLNA_TREE)/vlna.man

CLEANFILES = vlna.log vlna.toc

vlna.dvi: vlna.tex vlna.idx vlna.scn
	TEXINPUTS=.:$(srcdir)/$(VLNA_TREE):$$TEXINPUTS $(CSPLAIN) vlna.tex

# Running cweave in order to create vlna.tex generates in addition
# vlna.idx and vlna.scn; we must rerun cweave when they are not
# up to date (even if vlna.tex is up to date). Thus the sub-make.
#
vlna.tex vlna.idx vlna.scn: $(VLNA_TREE)/vlna.w
	$(MAKE) $(AM_MAKEFLAGS) do-cweave
do-cweave: $(VLNA_TREE)/vlna.w .FORCE
	$(CWEAVE) $<
.PHONY: do-cweave .FORCE

if do_cweb
all-local: vlna.dvi
vlna.c: $(VLNA_TREE)/vlna.w
	$(CTANGLE) $<
else !do_cweb
all-local:
endif !do_cweb