summaryrefslogtreecommitdiff
path: root/Build/source/utils/tpic2pdftex/Makefile.am
blob: 65eb498dd12a6ff73b89e29a02239996b2774e44 (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
## Makefile.am for the TeX Live subdirectory utils/tpic2pdftex/
##
## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##
dist_bin_SCRIPTS = tpic2pdftex

dist_man1_MANS = tpic2pdftex.1

pic_files = beamerexample.pic example.pic
tpic_files = $(pic_files:.pic=.tpic)
tex_files = $(pic_files:.pic=.tex)
pdf_files = $(pic_files:.pic=.pdf)

doc: $(pdf_files)

example.pdf: example.tex
	pdftex $<

beamerexample.pdf: beamerexample.tex
	pdflatex $<

%.tex: %.tpic
	$(srcdir)/tpic2pdftex $< > $@

$(tpic_files): Makefile

%.tpic: %.pic
	pic -z -t $< > $@

dist_check_SCRIPTS = tpic2pdftex.test

TESTS = tpic2pdftex.test

## Expected test output
##
exp_files = $(pic_files:.pic=.exp)

CLEANFILES = $(pic_files:.pic=.log) *.aux *.nav *.out *.snm *.toc

DISTCLEANFILES = $(pdf_files) $(tex_files) $(tpic_files)

EXTRA_DIST = $(exp_files) $(pic_files)