PERL = perl
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
-PS2PDF = ps2pdf # Part of GhostScript
+PS2PDF = ps2pdf -dOptimize=true # Part of GhostScript
SRCS = nasmdoc.src
OUT = nasm.info nasmdoc.ps nasmdoc.pdf
os2: nasm.inf
-.SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .pdf .txt .pl .ipf .inf
-
# Consider html, txt and ps output a side effect
-nasmdoc.texi: nasmdoc.src rdsrc.pl
+nasmdoc.dip: nasmdoc.src rdsrc.pl
mkdir -p html
$(PERL) $(srcdir)/rdsrc.pl < $<
mv -f *.html html
-nasmdoc.ps: nasmdoc.texi
+nasmdoc.texi: nasmdoc.dip
: Generated by side effect
+nasmdoc.ps: nasmdoc.dip nasmlogo.eps ../version genpsdriver.pl \
+ genps.pl psfonts.ph pswidth.ph head.ps
+ $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
+
+nasmdoc.pdf: nasmdoc.ps
+ $(PS2PDF) nasmdoc.ps nasmdoc.pdf
+
nasm.info: info/nasm.info
info/nasm.info: nasmdoc.texi
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
nasmdoc.ipf: nasmdoc.texi
texi2ipf $< >$@
ipfc -i -s $< $@
clean:
- -rm -f *.rtf *.hpj *.texi *.ph *.gid *.ipf
+ -rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
-rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
spotless: clean
- -rm -rf html info *.hlp *.txt *.ps *.inf *.pdf *.dvi
+ -rm -rf html info
+ -rm -f *.hlp *.txt *.inf *.pdf *.dvi
+ -rm -f nasmdoc*.ps
install: all
$(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)