File: makefile

package info (click to toggle)
wp2latex 3.97%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,228 kB
  • sloc: cpp: 45,091; ansic: 8,998; asm: 2,435; makefile: 529; sh: 19
file content (101 lines) | stat: -rw-r--r-- 4,209 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
##########################################################################
#	     The test makefile for wp2latex package		         #
##########################################################################


.SUFFIXES: .tex .wp .wpd .dvi .602

LATEX = latex
OUTDIR = ./output
MKDIR = mkdir
WP2LATEX = ../sources.cc/wp2latex

.tex.dvi:
	$(LATEX) $*.tex

.wp.tex:
	$(WP2LATEX) -no-interactive -i $*.wp -o $*.tex

test: testltx

testltx: testconv $(MAKEFILE_LIST)
	cp ../styles.tex/*.sty $(OUTDIR)
	cp ../styles.tex/*.def $(OUTDIR)
	cd $(OUTDIR) ; latex crypt1.tex -halt-on-error
	cd $(OUTDIR) ; latex crypt3.tex -halt-on-error
	cd $(OUTDIR) ; latex crypt4.tex -halt-on-error
	cd $(OUTDIR) ; latex equation.tex -halt-on-error
#	latex test.tex
	cd $(OUTDIR) ; latex chars5.tex -halt-on-error
	cd $(OUTDIR) ; latex ole6.tex -halt-on-error
	cd $(OUTDIR) ; latex hel_sk2.tex -halt-on-error
	cd $(OUTDIR) ; latex FormTab5FE.tex -halt-on-error


testconv: $(MAKEFILE_LIST) | $(OUTDIR)
	$(WP2LATEX) -S -no-interactive -i crypt1.wp -o $(OUTDIR)/crypt1.tex -s FRIDRICH
	$(WP2LATEX) -S -no-interactive -i crypt3.wp -o $(OUTDIR)/crypt3.tex -s a
	$(WP2LATEX) -S -no-interactive -i crypt4.wp -o $(OUTDIR)/crypt4.tex -s wp4
	$(WP2LATEX) -S -no-interactive -i RTassays2.wp -o $(OUTDIR)/RTassays.tex
	$(WP2LATEX) -S -no-interactive -i algeria3.wp -o $(OUTDIR)/algeria3.tex
	$(WP2LATEX) -S -no-interactive -i torture4.wp -o $(OUTDIR)/torture.tex
	$(WP2LATEX) -S -no-interactive -i equation5.wp -o $(OUTDIR)/equation.tex
	$(WP2LATEX) -S -no-interactive -i test5.wp -o $(OUTDIR)/test.tex
	$(WP2LATEX) -S -no-interactive -i ole6.wpd -o $(OUTDIR)/ole6.tex
	$(WP2LATEX) -S -no-interactive -i hel_sk2.wpg -o $(OUTDIR)/hel_sk2.tex
	$(WP2LATEX) -S -no-interactive -i chars5.wp -o $(OUTDIR)/chars5.tex
	$(WP2LATEX) -S -no-interactive -i chars6.wp -o $(OUTDIR)/chars6.tex
	$(WP2LATEX) -S -no-interactive -i latin2.602 -o $(OUTDIR)/latin2.tex
	$(WP2LATEX) -S -no-interactive -i FormTab5FE.wp -o $(OUTDIR)/FormTab5FE.tex

# create destination directories
$(OUTDIR) :
	$(MKDIR) $@


bigtest: $(MAKEFILE_LIST) | $(OUTDIR)/
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5_ALL.tex -use-all
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5_t.tex -tipa
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5__.tex -no-tipa
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5__b.tex -bbm
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5___.tex -no-bbm
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5____h.tex -cjhebrew
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5_____.tex -no-cjhebrew
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5_____c.tex -cyrillic
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5______.tex -no-cyrillic
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5______1.tex -fontenc-T1
	$(WP2LATEX) -S -i test5.wp -o $(OUTDIR)/test5_______.tex -no-fontenc-T1


bigtestltx: bigtest
	cp ../styles.tex/*.sty $(OUTDIR)
	cp ../styles.tex/*.def $(OUTDIR)
	@echo ####### Converting test5.wp -use-all
	cd $(OUTDIR) ; latex test5_ALL.tex
	@echo ####### Converting test5.wp -tipa
	cd $(OUTDIR) ; latex test5_t.tex
	@echo ####### Converting test5.wp -no-tipa
	cd $(OUTDIR) ; latex test5__.tex
	@echo ####### Converting test5.wp -bbm
	cd $(OUTDIR) ; latex test5__b.tex
	@echo ####### Converting test5.wp -no-bbm
	cd $(OUTDIR) ; latex test5___.tex
	@echo ####### Converting test5.wp -cjhebrew
	cd $(OUTDIR) ; latex test5____h.tex
	@echo ####### Converting test5.wp -no-cjhebrew
	cd $(OUTDIR) ; latex test5_____.tex
	@echo ####### Converting test5.wp -cyrilic
	cd $(OUTDIR) ; latex test5_____c.tex
	@echo ####### Converting test5.wp -no-cyrilic
	cd $(OUTDIR) ; latex test5______.tex
	@echo ####### Converting test5.wp -fontenc-T1
	cd $(OUTDIR) ; latex test5______1.tex
	@echo ####### Converting test5.wp -no-fontenc-T1
	cd $(OUTDIR) ; latex test5_______.tex

clean:
	rm -f *.tex *.dvi *.aux *.log *.ent *.toc *.pdf *.eps *.ps *.idx .nfs*
	rm -f *.sty *.def *.STR *.TBL
	rm -f $(OUTDIR)/*.tex $(OUTDIR)/*.dvi $(OUTDIR)/*.aux $(OUTDIR)/*.log $(OUTDIR)/*.ent $(OUTDIR)/*.idx $(OUTDIR)/*.toc
	rm -f $(OUTDIR)/*.sty $(OUTDIR)/*.def $(OUTDIR)/*.eps
#$(OUTDIR)/*.toc $(OUTDIR)/*.pdf $(OUTDIR)/*.ent $(OUTDIR)/*.toc $(OUTDIR)/*.pdf $(OUTDIR)/*.eps $(OUTDIR)/*.ps $(OUTDIR)/*.idx