PS2PDF = ps2pdf # Part of GhostScript
SRCS = nasmdoc.src
-OUT = nasm.info nasmdoc.ps nasmdoc.pdf
+OUT = info html nasmdoc.ps nasmdoc.pdf
# exports
export srcdir
inslist.src: inslist.pl ../insns.dat
$(PERL) $(srcdir)/inslist.pl
-# Consider html, txt and ps output a side effect
-nasmdoc.dip: nasmdoc.src rdsrc.pl inslist.src
+.PHONY: html
+html: html/nasmdoc0.html
+
+html/nasmdoc0.html: nasmdoc.src rdsrc.pl inslist.src
mkdir -p html
- $(PERL) $(srcdir)/rdsrc.pl < $<
+ $(PERL) $(srcdir)/rdsrc.pl html < $<
mv -f *.html html
-nasmdoc.texi: nasmdoc.dip
- : Generated by side effect
+nasmdoc.dip: nasmdoc.src rdsrc.pl inslist.src
+ $(PERL) $(srcdir)/rdsrc.pl dip < $<
+
+nasmdoc.texi: nasmdoc.src rdsrc.pl inslist.src
+ $(PERL) $(srcdir)/rdsrc.pl texi < $<
+
+nasmdoc.txt: nasmdoc.src rdsrc.pl inslist.src
+ $(PERL) $(srcdir)/rdsrc.pl txt < $<
nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \
genps.pl psfonts.ph pswidth.ph head.ps
nasmdoc.pdf: nasmdoc.ps
$(PS2PDF) nasmdoc.ps
-nasm.info: info/nasm.info
+.PHONY: info
+info: info/nasm.info
info/nasm.info: nasmdoc.texi
mkdir -p info