summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/pdftricks/makefile
blob: b9fd6d57f9457ab08966e98aa28ab11b454cb0d9 (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
## 
## Makefile to install pdftricks.sty
##
## CV Radhakrishnan <cvr@river-valley.org>
##
##
BINDIR = /usr/bin
MKDIR=mkdir
COPY=cp
CHDIR=cd
ECHO=echo
ZIP=zip -9
INSTALLDIRVAR=TEXMFMAIN

all: pdftricks binaries test

pdftricks: 
	( \
	TEXMF=`kpsewhich -expand-var '$$$(INSTALLDIRVAR)'`; \
	echo installing to $${TEXMF}/tex/latex/pdftricks; \
	$(MKDIR) $${TEXMF}/tex/latex/pdftricks; \
	$(COPY) *.sty manual.pdf $${TEXMF}/tex/latex/pdftricks \
	)

binaries:
	$(COPY) pst2pdf  $(BINDIR)

test:
	texhash               ;
	pdflatex test         ;
	pdflatex test         ;
	acroread example.pdf

clean:
	rm -f ./*