Major update.
[kic.git] / Makefile
blobee23b0d3b518e50b23bb5dec91bd3d9e0bbcd1df
1 TEXFILES=$(basename $(filter-out %.inc.tex, $(wildcard *.tex)))
3 .PHONY: dvi ps pdf clean vps vdvi ftp uxf
5 AUX_FILES=$(addsuffix .aux,$(TEXFILES))
6 LOG_FILES=$(addsuffix .log,$(TEXFILES))
7 DVI_FILES=$(addsuffix .dvi,$(TEXFILES))
8 PS_FILES=$(addsuffix .ps,$(TEXFILES))
9 PDF_FILES=$(addsuffix .pdf,$(TEXFILES))
10 $(filter-out $(mains),$(objects))
11 PIC_FILES=$(filter-out sequence.pic, $(wildcard *.pic))
12 FIG_FILES=$(wildcard *.fig)
13 UXF_FILES=$(wildcard *.uxf)
15 dvi: $(DVI_FILES)
16 ps: $(PS_FILES)
17 pdf: $(PDF_FILES)
19 clean:
20 echo TEXFILES: $(TEXFILES)
21 rm -f $(DVI_FILES)
22 rm -f $(PS_FILES)
23 rm -f $(PDF_FILES)
24 rm -f $(addsuffix .eps, $(basename $(PIC_FILES)))
25 rm -f $(wildcard *.ps.[0-9][0-9][0-9])
26 rm -f $(wildcard *.aux)
27 rm -f $(wildcard *.out)
28 rm -f $(wildcard *.log)
29 rm -f $(wildcard *.fff)
30 rm -f $(wildcard *.lof)
31 rm -f $(addsuffix .eps, $(basename $(PIC_FILES)))
32 rm -f $(addsuffix .eps, $(basename $(UXF_FILES)))
33 rm -f $(addsuffix .eps, $(basename $(FIG_FILES)))
34 rm -f gitHeadInfo.gin
36 vdvi:$(DVI_FILES)
37 xdvi $<
39 vps:$(PS_FILES)
40 gv $<
42 vpdf:$(PDF_FILES)
43 mupdf $<
45 ftp:$(PDF_FILES)
46 ncftpput -f ~/.ncftp/prosite.dat -S .tmp -R /htdocs/pub vip_lms.pdf
48 $(addsuffix .eps, $(basename $(PIC_FILES))):%.eps:%.pic
49 #pic2plot -Tps --page-size a4 --rotation 90 $< > $(addsuffix .ps, $(basename $@))
50 pic2plot -Tps --page-size a4 $< > $(addsuffix .ps, $(basename $@))
51 ps2epsi $(addsuffix .ps, $(basename $@)) $(addsuffix .eps, $(basename $@))
52 rm -f $(addsuffix .ps, $(basename $@))
54 $(addsuffix .eps, $(basename $(FIG_FILES))):%.eps:%.fig
55 fig2dev -Leps $< $@
57 $(addsuffix .eps, $(basename $(UXF_FILES))):%.eps:%.uxf
58 umlet.sh -action=convert -format=eps -filename=$<
60 gitHeadInfo.gin:
61 ./generate_gitinfo.sh
63 $(DVI_FILES):%.dvi:%.tex $(addsuffix .eps, $(basename $(PIC_FILES))) $(addsuffix .eps, $(basename $(FIG_FILES))) $(addsuffix .eps, $(basename $(UXF_FILES))) gitHeadInfo.gin cc_enrolment_status.schema.json
64 echo $(VERSION) | latex $<
65 echo $(VERSION) | latex $<
67 $(PS_FILES):%.ps:%.dvi
68 dvips -t a4 -o $@ $<
70 $(PDF_FILES):%.pdf:%.dvi $(PS_FILES)
71 ps2pdf $(addsuffix .ps, $(basename $@)) $@