summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/engrec/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/engrec/Makefile')
-rw-r--r--macros/latex/contrib/engrec/Makefile121
1 files changed, 121 insertions, 0 deletions
diff --git a/macros/latex/contrib/engrec/Makefile b/macros/latex/contrib/engrec/Makefile
new file mode 100644
index 0000000000..ada9b1ac72
--- /dev/null
+++ b/macros/latex/contrib/engrec/Makefile
@@ -0,0 +1,121 @@
+# ---------------------------------------------------------------
+# 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
+# ---------------------------------------------------------------
+PKGNAME = engrec
+VERSION=1-1 # Edition du cinquantenaire
+
+TEX= \
+ $(PKGNAME).sty \
+
+DOC= \
+ $(PKGNAME).pdf \
+ LISEZMOI \
+ README
+
+SOURCE= \
+ Makefile \
+ $(PKGNAME).dtx \
+ $(PKGNAME).ins \
+
+PRODUITS = \
+ $(PKGNAME).sty \
+ $(PKGNAME).pdf \
+
+DECHETS = \
+ $(PKGNAME).glo \
+ $(PKGNAME).gls \
+ $(PKGNAME).idx \
+ $(PKGNAME).ilg \
+ $(PKGNAME).ind \
+ $(PKGNAME).aux \
+ $(PKGNAME).log \
+ $(PKGNAME).toc
+
+REPERTS = \
+ doc \
+ tex \
+ source
+
+# ---------------------------------------------------------------
+
+.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 $<
+
+# ---------------------------------------------------------------
+
+all: $(PKGNAME).sty $(PKGNAME).pdf
+
+help:
+ @-echo "************************************************************"
+ @-echo "* *"
+ @-echo "* Choisir une des options : *"
+ @-echo "* 'all' -> engrec.sty *"
+ @-echo "* 'doc' pour la documentation *"
+ @-echo "* 'doc' for the documentation *"
+ @-echo "* 'sty' -> engrec.sty *"
+ @-echo "* 'dist'-> engrec.sty & doc *"
+ @-echo "* 'clean' petit nettoyage *"
+ @-echo "* 'distclean' (encore plus propre) *"
+ @-echo "* *"
+ @-echo "************************************************************"
+
+dist: all clean
+
+# ---------------------------------------------------------------
+
+clean:
+ @-rm -f $(DECHETS)
+ @-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)
+
+# ---------------------------------------------------------------
+
+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
+
+# ---------------------------------------------------------------
+
+$(PKGNAME).sty: $(PKGNAME).ins $(PKGNAME).dtx
+doc: $(PKGNAME).ins $(PKGNAME).pdf
+# ---------------------------------------------------------------
+# echu e an abaden
+# Le \TeX nicien de surface 2008-05-04