blob: e05029d36f0be48e82c7a2772354d74e6ff205d6 (
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
|
# ---------------------------------------------------------------
# Makefile for the modroman package by Y. Henel
# modified version of the Makefile of the kerntest package
# many thanks to Harald Harders whose kerntest.xml I have also
# hacked to obtain my modroman.xml
# ---------------------------------------------------------------
SRCDIR=modroman
INSTALLDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/tex/latex/modroman
DOCDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/doc/latex/modroman
SOURCEDIR=`kpsewhich --expand-path='$$TEXMFLOCAL'`/source/latex/modroman
VERSION=0.3
TEX= \
modroman.sty \
DOC= \
modroman.pdf \
LISEZMOI.txt \
ENGLISHDOC= \
modroman.pdf \
README.txt \
SOURCE= \
Makefile \
modroman.dtx \
modroman.ins \
CTAN= \
modroman.xml \
modroman.tpm \
# ---------------------------------------------------------------
.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf
# ---------------------------------------------------------------
.ins.sty:
latex $<
.dtx.pdf:
pdflatex $<
makeindex -s gind.ist $(*D)/$(*F)
makeindex -s gglo.ist -o $(*D)/$(*F).gls $(*D)/$(*F).glo
pdflatex $<
.tex.pdf:
pdflatex $<
pdflatex $<
.dvi.ps:
dvips -o $(*D)/$(*F).ps $(*D)/$(*F)
# ---------------------------------------------------------------
all: modroman.sty modroman.pdf
help:
@-echo "******************************************************"
@-echo "*"
@-echo "* Choisir une des options :"
@-echo "* 'all' -> modroman.sty "
@-echo "* 'doc' ou 'frenchdoc' pour la documentation"
@-echo "* 'englishdoc' for the English documentation"
@-echo "* 'sty' -> modroman.sty "
@-echo "* 'dist'-> modroman.sty & frenchdoc & englishdoc"
@-echo "* 'clean' petit nettoyage"
@-echo "* 'distclean' (encore plus propre)"
@-echo "* 'tar' -> modroman-VERSION.tar.gz"
@-echo "* 'install' pour l'installation"
@-echo "* OR 'install-english' for an installation"
@-echo "* with the English version of the documentation"
@-echo "************ NOTA BENE ***********"
@-echo "*"
@-echo "* l'installation est faite par defaut dans TEXMFLOCAL "
@-echo "* by default installs in TEXMFLOCAL"
@-echo "* c'est a dire that is : "
@-echo "* " `kpsewhich --expand-path='$$TEXMFLOCAL'`
@-echo "*"
@-echo "******************************************************"
dist: all clean
# ---------------------------------------------------------------
clean:
@-rm -f modroman.glo modroman.gls modroman.idx modroman.ilg
@-rm -f modroman.ind modroman.aux modroman.log modroman.toc
@-rm -f *~
distclean: clean
@-rm -f modroman.sty
@-rm -f modroman.pdf
# ---------------------------------------------------------------
tar: dist
@-echo modroman-$(VERSION).tar.gz
@-rm -f modroman-$(VERSION).tar.gz
tar czCf .. modroman-$(VERSION).tar.gz \
$(SRCDIR)/README.txt \
$(SRCDIR)/LISEZMOI.txt \
$(SRCDIR)/Makefile \
$(SRCDIR)/modroman.dtx \
$(SRCDIR)/modroman.ins \
$(SRCDIR)/modroman.pdf \
$(SRCDIR)/modroman.xml \
$(SRCDIR)/modroman.tpm \
# ---------------------------------------------------------------
texlive: all clean
@-rm -rf texmf
mkdir -p texmf/tex/latex/modroman
mkdir -p texmf/doc/latex/modroman
mkdir -p texmf/source/latex/modroman
cp $(TEX) texmf/tex/latex/modroman
cp $(DOC) texmf/doc/latex/modroman
cp $(SOURCE) texmf/source/latex/modroman
# ---------------------------------------------------------------
zip: texlive
-@rm -f modroman-$(VERSION).zip
zip -r modroman-$(VERSION).zip texmf
@-rm -r texmf/
# ---------------------------------------------------------------
install: all doc
if [ ! -d $(INSTALLDIR) ]; then mkdir -p $(INSTALLDIR); fi
if [ ! -d $(DOCDIR) ]; then mkdir -p $(DOCDIR); fi
if [ ! -d $(SOURCEDIR) ]; then mkdir -p $(SOURCEDIR); fi
install -m644 $(TEX) $(INSTALLDIR)
install -m644 $(DOC) $(DOCDIR)
install -m644 $(SOURCE) $(SOURCEDIR)
texhash
# ---------------------------------------------------------------
modroman.sty: modroman.ins modroman.dtx
doc: modroman.ins modroman.pdf
englishdoc: modroman.ins modroman.pdf
frenchdoc: doc
# ---------------------------------------------------------------
# echu e an abaden
# Le \TeX nicien de surface 2004-05-19
|