summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-11-04 22:04:18 +0100
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-11-04 22:04:18 +0100
commitdca84e90c91c79edc6bce8df1adf5c06e4eb3663 (patch)
tree327384876e5da0dae3401dd77761ce7b1c1e788a /Makefile
parente7bfa4a4d665ecf35852aa978f385a2cf38feeec (diff)
downloadluatexbase-dca84e90c91c79edc6bce8df1adf5c06e4eb3663.tar.gz
use latexmk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 3e56d17..0b854b0 100644
--- a/Makefile
+++ b/Makefile
@@ -60,8 +60,7 @@ TDS_ZIP = $(NAME).tds.zip
ZIPS = $(CTAN_ZIP) $(TDS_ZIP)
DO_TEX = tex --interaction=batchmode $< >/dev/null
-DO_PDFLATEX = pdflatex --interaction=batchmode $< >/dev/null
-DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
+DO_LATEXMK = latexmk -silent $< >/dev/null
# Main targets definition
all: $(GENERATED)
@@ -74,10 +73,7 @@ tds: $(TDS_ZIP) Makefile
world: all ctan
%.pdf: %.dtx $(DTXSTY)
- $(DO_PDFLATEX)
- $(DO_MAKEINDEX) || true
- $(DO_PDFLATEX)
- $(DO_PDFLATEX)
+ $(DO_LATEXMK)
luatexbase.%.lua: %.lua
ln -sf $< $@
@@ -173,7 +169,9 @@ manifest:
@for f in $(GENERATED); do echo $$f; done
clean:
- @$(RM) -- *.log *.aux *.toc *.idx *.ind *.ilg *.out test-*.pdf
+ @latexmk -silent -c *.dtx >/dev/null
+ @# for tex-only runs
+ @$(RM) -- *.log
mrproper: clean
@$(RM) -- $(GENERATED) $(ZIPS) $(TMP_LOADER)