Repository created.
[chemdb.git] / docs / mp / Makefile
1 MPS = NFPA
2
3 TEMP_FILES = $(MPS:%=%.mp[a-z]) $(MPS:%=%.log) mp* texnum.mpx
4 GENERATED_FILES = $(MPS:%=%.[0-9]*) sample.log sample.aux sample.pdf
5
6 #PDFVIEWER = gv
7 PDFVIEWER = xpdf
8 #PDFVIEWER = evince
9
10 images : $(MPS:%=%.1)
11
12 all : view
13
14 view : sample.pdf
15         $(PDFVIEWER) sample.pdf &
16
17 clean : semi-clean
18         rm -f $(GENERATED_FILES)
19
20 semi-clean :
21         rm -f $(TEMP_FILES)
22
23 # generate a pdf containing all mp images for previewing-troubleshooting
24 # depend on the first image from each mp file
25 sample.pdf : sample.tex images
26         pdflatex sample.tex
27
28 # if we call for the first image from an mp file, make them all
29 %.1 : %.mp %_c.mp
30         mpost "\$(^:%=input %;)"