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

if !WIN32
dist_bin_SCRIPTS = tpic2pdftex

dist_man1_MANS = tpic2pdftex.1
endif !WIN32

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

if !WIN32
TESTS = tpic2pdftex.test
endif !WIN32

## 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)