doc/Makefile.in: avoid deleting opt_var.txt, fix dependencies

Fix dependencies in the generation of the instruction list, and make
sure we don't delete opt_var.txt on "make spotless".
This commit is contained in:
H. Peter Anvin 2008-01-20 21:50:02 -08:00
parent c17a0eb31b
commit 8960f37b9c

View File

@ -32,10 +32,12 @@ all: $(OUT)
os2: nasm.inf
# Consider html, txt and ps output a side effect
nasmdoc.dip: nasmdoc.src rdsrc.pl inslist.pl ../insns.dat
mkdir -p html
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
mkdir -p html
$(PERL) $(srcdir)/rdsrc.pl < $<
mv -f *.html html
@ -73,8 +75,8 @@ clean:
spotless: clean
-rm -rf html info
-rm -f *.hlp *.txt *.inf *.pdf *.dvi
-rm -f nasmdoc*.ps
-rm -f *.hlp nasmdoc.txt *.inf *.pdf *.dvi
-rm -f nasmdoc*.ps inslist.src
install: all
$(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)