summaryrefslogtreecommitdiff
path: root/doc/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-04 14:16:20 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-04 14:16:20 +0000
commit33a514c1966721c85132198184c4bf3810083d4d (patch)
treee800de7a04f212a7f1e22b8b8a210b2a0fe2dff8 /doc/Makefile.in
parentd2cfaa5277509eb734c3976443c5e3b659919785 (diff)
downloadnasm-33a514c1966721c85132198184c4bf3810083d4d.tar.gz
nasm-33a514c1966721c85132198184c4bf3810083d4d.tar.bz2
nasm-33a514c1966721c85132198184c4bf3810083d4d.zip
Support generating PDF using ps2pdf with special annotations in the
PostScript output of rdsrc.pl.
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r--doc/Makefile.in34
1 files changed, 25 insertions, 9 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in
index a7f2ab9..8d308ca 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -18,29 +18,44 @@ INSTALL_DATA = @INSTALL_DATA@
PERL = perl
MAKEINFO = makeinfo
+TEXI2DVI = texi2dvi
+PS2PDF = ps2pdf # Part of GhostScript
SRCS = nasmdoc.src
-OUT = nasm.info
+OUT = nasm.info nasmdoc.ps nasmdoc.pdf
all: $(OUT)
os2: nasm.inf
-.SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .ps .txt .pl .ipf .inf
+.SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .pdf .txt .pl .ipf .inf
-# Consider html, txt and src output a side effect
-.src.texi:
+# Consider html, txt and ps output a side effect
+nasmdoc.texi: nasmdoc.src rdsrc.pl
mkdir -p html
- $(PERL) ./rdsrc.pl < $<
+ $(PERL) $(srcdir)/rdsrc.pl < $<
mv -f *.html html
-nasm.info: nasmdoc.texi
+nasmdoc.ps: nasmdoc.texi
+ : Generated by side effect
+
+nasm.info: info/nasm.info
+
+info/nasm.info: nasmdoc.texi
mkdir -p info
$(MAKEINFO) $<
mv -f *.info *.info-* info
+# DVI output from texinfo (optional)
+nasmdoc.dvi: nasmdoc.texi
+ $(TEXI2DVI) nasmdoc.texi
+
+# PDF output
+nasmdoc.pdf: nasmdoc.ps
+ $(PS2PDF) nasmdoc.ps nasmdoc.pdf
+
# Rules for building an OS/2 book
-.texi.ipf:
+nasmdoc.ipf: nasmdoc.texi
texi2ipf $< >$@
nasm.inf: nasmdoc.ipf
@@ -48,12 +63,13 @@ nasm.inf: nasmdoc.ipf
clean:
-rm -f *.rtf *.hpj *.texi *.ph *.gid *.ipf
+ -rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
spotless: clean
- -rm -rf html info *.hlp *.txt *.ps *.inf
+ -rm -rf html info *.hlp *.txt *.ps *.inf *.pdf *.dvi
install: all
$(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
mkdir -p $(INSTALLROOT)$(docdir)/html
$(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
- $(INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)
+ $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)