summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/engpron/Makefile
blob: 95abe8c29acf14b4834a14bd782763057d73d192 (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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# ---------------------------------------------------------------
# Makefile for the engpron package by Y. Henel
# modified version of the Makefile of the kerntest package 
# many thanks to Harald Harders
# ---------------------------------------------------------------
PKGNAME= engpron
VERSION= 2 # Edition du cinquantenaire

TEX= \
	$(PKGNAME).sty

DOC= \
	$(PKGNAME).pdf \
	$(PKGNAME)-en.pdf \
	$(PKGNAME)-fr.pdf \
	$(PKGNAME)-ex-fr.pdf \
	$(PKGNAME)-ex-en.pdf \
	LISEZMOI \
	README

SOURCE= \
	Makefile \
	$(PKGNAME).dtx \
	$(PKGNAME).ins \

PRODUITS= \
	$(PKGNAME).sty \
	$(PKGNAME)-tools.sty \
	$(PKGNAME).pdf \
	$(PKGNAME)-en.pdf \
	$(PKGNAME)-fr.pdf \
	$(PKGNAME)-en.ltx \
	$(PKGNAME)-fr.ltx \
	$(PKGNAME)-ex-fr.pdf \
	$(PKGNAME)-ex-en.pdf \
	$(PKGNAME)-ex-fr.tex \
	$(PKGNAME)-ex-en.tex


REPERTS= \
	doc \
	tex \
	source 

# ---------------------------------------------------------------

.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .ltx

# ---------------------------------------------------------------
.ins.sty:
	latex $<
### MUST BE latex DOES *NOT* WORK WITH ``simple'' TEX

.dtx.pdf:
	pdflatex $<
	pdflatex $<
	makeindex -s gind.ist $(*D)/$(*F)
	makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
	pdflatex $<

.ltx.pdf:
	pdflatex $<
	pdflatex $<
	makeindex $(*D)/$(*F)
	pdflatex $<

.tex.pdf:
	pdflatex $<
	pdflatex $<

# ---------------------------------------------------------------

all: $(PKGNAME).sty $(PKGNAME).pdf\
	$(PKGNAME)-tools.sty\
	$(PKGNAME)-ex-fr.pdf $(PKGNAME)-ex-fr.tex\
	$(PKGNAME)-ex-en.pdf $(PKGNAME)-ex-en.tex\
	$(PKGNAME)-en.pdf $(PKGNAME)-en.ltx\
	$(PKGNAME)-fr.pdf $(PKGNAME)-fr.ltx
# ---------------------------------------------------------------

help: 
	@-echo "************************************************************"
	@-echo "*                                                          *"
	@-echo "*          Choisir une des options :                       *"
	@-echo "*          'all' -> engpron.sty                            *"
	@-echo "*          'doc' pour la documentation                     *"
	@-echo "*          'doc' for the documentation                     *"
	@-echo "*          'sty' -> engpron.sty                            *"
	@-echo "*          'dist'-> engpron.sty & doc                      *"
	@-echo "*          'clean' petit nettoyage                         *"
	@-echo "*          'distclean' (encore plus propre)                *"
	@-echo "*                                                          *"
	@-echo "************************************************************"
# ---------------------------------------------------------------

dist: all clean

# ---------------------------------------------------------------

clean:
	@-rm -f *.{aux,log,toc,out,glo,gls,ilg,ind,idx,hd}
	@-rm -f *~

# ---------------------------------------------------------------

distclean: clean
	@-rm -f $(PRODUITS)

# ---------------------------------------------------------------

texlive: all clean
	@-rm -rf $(REPERTS)
	@-mkdir -p tex/latex/$(PKGNAME)
	@-mkdir -p doc/latex/$(PKGNAME)
	@-mkdir -p source/latex/$(PKGNAME)
	@-cp $(TEX) tex/latex/$(PKGNAME)
	@-cp $(DOC) doc/latex/$(PKGNAME)
	@-cp $(SOURCE) source/latex/$(PKGNAME)
	@-mkdir -p $(PKGNAME)
	@-cp $(DOC) ./$(PKGNAME)
	@-cp $(SOURCE) ./$(PKGNAME)
	@-cp $(TEX) ./$(PKGNAME)

# ---------------------------------------------------------------

zip:	texlive
	@-rm -f $(PKGNAME).zip
	@-zip -r $(PKGNAME) $(REPERTS)
	@-rm -rf $(REPERTS)
	@mv $(PKGNAME).zip $(PKGNAME).tds.zip
	@zip -r $(PKGNAME) $(PKGNAME)
	@zip -r $(PKGNAME) $(PKGNAME).tds.zip
	@-rm -rf $(PKGNAME)
	@-rm -f $(PKGNAME).tds.zip

# ---------------------------------------------------------------
ctan: zip distclean

# ---------------------------------------------------------------

$(PKGNAME).sty: $(PKGNAME).ins $(PKGNAME).dtx

$(PKGNAME)-tools.sty: $(PKGNAME).ins $(PKGNAME).dtx
$(PKGNAME)-en.ltx: $(PKGNAME).ins $(PKGNAME).dtx
$(PKGNAME)-fr.ltx: $(PKGNAME).ins $(PKGNAME).dtx
$(PKGNAME)-ex-en.tex: $(PKGNAME).ins $(PKGNAME).dtx
$(PKGNAME)-ex-fr.tex: $(PKGNAME).ins $(PKGNAME).dtx

sty: $(PKGNAME).sty $(PKGNAME)-tools.sty 

doc: $(PKGNAME).ins $(PKGNAME).pdf 

# ---------------------------------------------------------------
# echu e an abaden
# Le \TeX nicien de surface 2008-05-10