summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/modroman/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-05-06 01:01:01 +0000
committerKarl Berry <karl@freefriends.org>2008-05-06 01:01:01 +0000
commit101395e54ec0c670b2308650550de02c7b4ce460 (patch)
treedbec239e2ab1c70d621cf26daa1f53724728298e /Master/texmf-dist/source/latex/modroman/Makefile
parent025d02f98224c010aa33c9bbc95e31660d39b08b (diff)
modroman update (5may08)
git-svn-id: svn://tug.org/texlive/trunk@7881 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/modroman/Makefile')
-rw-r--r--Master/texmf-dist/source/latex/modroman/Makefile134
1 files changed, 54 insertions, 80 deletions
diff --git a/Master/texmf-dist/source/latex/modroman/Makefile b/Master/texmf-dist/source/latex/modroman/Makefile
index e05029d36f0..c830cdf1c5e 100644
--- a/Master/texmf-dist/source/latex/modroman/Makefile
+++ b/Master/texmf-dist/source/latex/modroman/Makefile
@@ -4,32 +4,41 @@
# 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
+PKGNAME = modroman
+VERSION=0-4 # Edition du cinquantenaire
TEX= \
- modroman.sty \
+ $(PKGNAME).sty \
DOC= \
- modroman.pdf \
- LISEZMOI.txt \
-
-ENGLISHDOC= \
- modroman.pdf \
- README.txt \
+ $(PKGNAME).pdf \
+ LISEZMOI \
+ README \
SOURCE= \
Makefile \
- modroman.dtx \
- modroman.ins \
+ $(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
-CTAN= \
- modroman.xml \
- modroman.tpm \
# ---------------------------------------------------------------
@@ -49,34 +58,21 @@ CTAN= \
pdflatex $<
pdflatex $<
-.dvi.ps:
- dvips -o $(*D)/$(*F).ps $(*D)/$(*F)
-
# ---------------------------------------------------------------
-all: modroman.sty modroman.pdf
+all: $(PKGNAME).sty $(PKGNAME).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 "* 'doc' pour la documentation"
+ @-echo "* 'doc' for the documentation"
@-echo "* 'sty' -> modroman.sty "
- @-echo "* 'dist'-> modroman.sty & frenchdoc & englishdoc"
+ @-echo "* 'dist'-> modroman.sty & doc"
@-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 "******************************************************"
@@ -85,63 +81,41 @@ 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 $(DECHETS)
@-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 \
+ @-rm -f $(PRODUITS)
# ---------------------------------------------------------------
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
+ @-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 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
+ @-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
# ---------------------------------------------------------------
-modroman.sty: modroman.ins modroman.dtx
-doc: modroman.ins modroman.pdf
-englishdoc: modroman.ins modroman.pdf
-frenchdoc: doc
+$(PKGNAME).sty: $(PKGNAME).ins $(PKGNAME).dtx
+doc: $(PKGNAME).ins $(PKGNAME).pdf
# ---------------------------------------------------------------
# echu e an abaden
-# Le \TeX nicien de surface 2004-05-19
+# Le \TeX nicien de surface 2008-05-04