summaryrefslogtreecommitdiff
path: root/Build/source/utils/vlna/Makefile.am
blob: b0b8665a9e5fe8ee623485b6d9f2473666b4dc2f (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
44
45
46
47
48
49
50
51
52
53
# Makefile.am -- Peter Breitenlohner <peb@mppmu.mpg.de> -- Public domain.

bin_PROGRAMS = vlna

MAN_DEP =
if MAINTAINER_MODE
# Ensure vlna.dvi is up to date
MAN_DEP += $(CWEB_DVI)
endif

nodist_man1_MANS = vlna.1

MAN_SRC = vlna.man

DOCS = Makefile.orig README README.en vlna.txt

CWEB_SRC = vlna.w

CWEB_TEX = vlna.tex csmac.tex

CWEB_DVI = vlna.dvi

CWEB_EXE = vlna.exe

EXTRA_DIST = $(DOCS) $(MAN_SRC) $(CWEB_SRC) $(CWEB_TEX) $(CWEB_DVI) $(CWEB_EXE)

TMP_FILES = vlna.idx vlna.scn

if TETEX_BUILD
BIN_DIR = BINDIR
MAN_DIR = MANDIR/man1
else
BIN_DIR = $(bindir)
MAN_DIR = $(man1dir)
endif

vlna.1: vlna.man $(MAN_DEP)
	sed -e "s|@BINDIR@|$(BIN_DIR)|;\
		s|@MANDIR@|$(MAN_DIR)|;\
		s|@MANEXT@|1|" $< > $@

if MAINTAINER_MODE

vlna.c: vlna.w
	$(CTANGLE) $<

vlna.tex: vlna.w
	$(CWEAVE) $< && rm -f $(TMP_FILES)

vlna.dvi: vlna.tex
	TEXINPUTS=.:$(srcdir):$$TEXINPUTS $(CSPLAIN) vlna.tex

endif