summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/manual/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-16 18:32:50 +0000
committerKarl Berry <karl@freefriends.org>2008-06-16 18:32:50 +0000
commitc98571489bb4ffe9f8d094f7e14e8fa81ba15c1d (patch)
treefdf3a697ce1658d6f65ede7ff339bd9235f346f5 /Master/texmf-dist/doc/pdftex/manual/Makefile
parent1a8787937b57ae70caa60446172435597c85eb9d (diff)
move to texmf-dist a la luatex, since this doc is distribution-independent (heiko 15 Jun 2008 07:59:53)
git-svn-id: svn://tug.org/texlive/trunk@8788 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/manual/Makefile')
-rw-r--r--Master/texmf-dist/doc/pdftex/manual/Makefile91
1 files changed, 91 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/pdftex/manual/Makefile b/Master/texmf-dist/doc/pdftex/manual/Makefile
new file mode 100644
index 00000000000..cefb2e4840a
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/manual/Makefile
@@ -0,0 +1,91 @@
+# $Id: Makefile,v 1.89 2007/01/25 07:18:57 hhenkel Exp $
+#
+# Makefile for pdfTeX documentation
+
+pdftexversion=1.40.0
+mandir=manual
+distdate=`date +%y%m%d`
+distrev=`awk '/Id:/{print $$4; exit}' $(mandir)/pdftex-t.tex`
+
+distall=pdftex-w.tex pdftex-t.txt pdftex-t.tex \
+ pdftex-i.tex syntaxform.awk Makefile makefiles.cmd \
+ pdftex-a.pdf pdftex-l.pdf pdftex-s.pdf \
+ pdftex-syntax.txt README Changelog
+
+distnopdf=pdftex-w.tex pdftex-t.txt pdftex-t.tex \
+ pdftex-i.tex syntaxform.awk Makefile makefiles.cmd \
+ pdftex-syntax.txt README Changelog
+
+all: pdftex-a.pdf \
+ pdftex-l.pdf \
+ pdftex-s.pdf \
+ pdftex-syntax.txt
+
+booklet: pdftex-b.pdf pdftex-b-e.pdf pdftex-b-o.pdf
+
+pdftex-a.pdf: pdftex-t.tex pdftex-t.txt
+ texexec --result=$@ $<
+
+pdftex-l.pdf: pdftex-t.tex pdftex-t.txt
+ texexec --mode=letter --result=$@ $<
+
+pdftex-s.pdf: pdftex-t.tex pdftex-i.tex
+ texexec --mode=screen --result=$@ $<
+
+pdftex-b.pdf: pdftex-a.pdf
+ texexec --pdfarrange --paper=a5a4 --print=up --addempty=1,2 \
+ --result=$@ $<
+
+pdftex-b-e.pdf: pdftex-a.pdf
+ texexec --pdfarrange --paper=a5a4 --print=up --addempty=1,2 \
+ --pages=even --result=$@ $<
+
+pdftex-b-o.pdf: pdftex-a.pdf
+ texexec --pdfarrange --paper=a5a4 --print=up --addempty=1,2 \
+ --pages=odd --result=$@ $<
+
+pdftex-t.txt: pdftex-w.pdf Makefile
+ cat $< \
+ | expand \
+ | fmt -s -w36 \
+ | grep . \
+ | expand \
+ | cat > $@
+
+pdftex-w.pdf: pdftex-w.tex
+ pdftex $<
+
+pdftex-syntax.txt: pdftex-t.tex syntaxform.awk
+ gawk -f syntaxform.awk $< > $@
+
+# tar/zip including pdftex-a.pdf, pdftex-l.pdf, pdftex-s.pdf:
+
+alltar: $(distall)
+ cd .. && tar cvjf $(mandir)/pdftex-$(pdftexversion)-userman-$(distrev).tar.bz2 \
+ $(patsubst %, $(mandir)/%, $(distall))
+
+allzip: $(distall)
+ cd .. && zip $(mandir)/pdftex-$(pdftexversion)-userman-$(distrev).zip \
+ $(patsubst %, $(mandir)/%, $(distall))
+
+# tar/zip without PDF files:
+
+tar: $(distnopdf)
+ cd .. && tar cvjf $(mandir)/pdftex-$(pdftexversion)-userman-$(distrev)-src.tar.bz2 \
+ $(patsubst %, $(mandir)/%, $(distnopdf))
+
+zip: $(distnopdf)
+ cd .. && zip $(mandir)/pdftex-$(pdftexversion)-userman-$(distrev)-src.zip \
+ $(patsubst %, $(mandir)/%, $(distnopdf))
+
+clean:
+ texutil --purge
+
+allclean:
+ - rm -f pdftex-a.pdf pdftex-l.pdf pdftex-s.pdf
+ - rm -f pdftex-b.pdf pdftex-b-e.pdf pdftex-b-o.pdf
+ - rm -f pdftex-syntax.txt
+ - rm -f pdftex-w.pdf pdftex-t.txt
+ make clean
+
+clobber: allclean