projects
/
latex-mlastyle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0969884
)
Reworked again for embedded bibliography
author
Tim Pope
<code@tpope.net>
Sun, 16 Nov 2003 06:40:23 +0000
(06:40 +0000)
committer
Tim Pope
<code@tpope.net>
Sun, 16 Nov 2003 06:40:23 +0000
(06:40 +0000)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 9cbf84bf735bcf327447041e35148d359c3530e4..9a09208209e93029949b05f633a0995493742172 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-7,33
+7,34
@@
SRCDIR=source/latex/mlastyle
#VERSION=`grep '^\\\\def\\\\fileversion' mlastyle.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'`
VERSION=`grep '^%<[a-z]*> *\[[0-9/]* *v' mlastyle.dtx | sed 's/^%<[a-z]*> *\[[0-9/]* *v\([-_.0-9a-z]*\).*/\1/'`
LATEX=latex
#VERSION=`grep '^\\\\def\\\\fileversion' mlastyle.dtx | sed 's/^\\\\def\\\\fileversion{\\(.*\\)\\.\\(.*\\)}/\\1_\\2/'`
VERSION=`grep '^%<[a-z]*> *\[[0-9/]* *v' mlastyle.dtx | sed 's/^%<[a-z]*> *\[[0-9/]* *v\([-_.0-9a-z]*\).*/\1/'`
LATEX=latex
+BIBTEX=bibtex
+MAKEINDEX=/usr/bin/makeindex
PDFLATEX=pdflatex
DVIPS=dvips
PDFLATEX=pdflatex
DVIPS=dvips
-MAKEINDEX=/usr/bin/makeindex
FAKEROOT=`[ -x /usr/bin/fakeroot ] && echo /usr/bin/fakeroot`
.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .ind .idx .gls .glo
.PHONY: clean distclean tar zip install target mlastyle instructions
FAKEROOT=`[ -x /usr/bin/fakeroot ] && echo /usr/bin/fakeroot`
.SUFFIXES: .sty .ins .dtx .dvi .ps .pdf .ind .idx .gls .glo
.PHONY: clean distclean tar zip install target mlastyle instructions
-%.ind: %.idx
+%.bbl: %.bib
+ $(BIBTEX) $*.aux
$(MAKEINDEX) -s gglo.ist -o $*.gls $*.glo
$(MAKEINDEX) -s gind.ist -o $*.ind $*.idx
$(MAKEINDEX) -s gglo.ist -o $*.gls $*.glo
$(MAKEINDEX) -s gind.ist -o $*.ind $*.idx
- [ ! -f $*.bib ] || bibtex $*.aux
-%.
idx
: %.dtx
+%.
bib
: %.dtx
$(LATEX) $<
$(LATEX) $<
-%.dvi: %.sty %.dtx %.ind
- $(LATEX) $*.dtx
- $(LATEX) $*.dtx
-
%.sty: %.ins %.dtx
$(LATEX) $*.ins
%.sty: %.ins %.dtx
$(LATEX) $*.ins
+%.dvi: %.sty %.dtx %.bbl
+ $(LATEX) $*.dtx
+ $(LATEX) $*.dtx
+
%.ps: %.dvi
$(DVIPS) -o $@ $<
%.ps: %.dvi
$(DVIPS) -o $@ $<
-%.pdf: %.
dtx %.ind
+%.pdf: %.
sty %.dtx %.bbl
$(PDFLATEX) $*.dtx
$(PDFLATEX) $*.dtx
$(PDFLATEX) $*.dtx
$(PDFLATEX) $*.dtx
@@
-52,7
+53,10
@@
clean:
distclean: clean
rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf
distclean: clean
rm -f mlastyle.sty mlastyle.dvi mlastyle.ps mlastyle.pdf
- rm -rf tex doc source bibtex
+ rm -rf $(LTXDIR) $(DOCDIR) $(SRCDIR) $(BSTDIR)
+ rmdir `dirname $(LTXDIR)` `dirname $(DOCDIR)`
+ rmdir `dirname $(SRCDIR)` `dirname $(BSTDIR)`
+ rmdir tex doc source bibtex
tar: mlastyle.sty mlastyle.dvi clean
mkdir mlastyle-$(VERSION)
tar: mlastyle.sty mlastyle.dvi clean
mkdir mlastyle-$(VERSION)