2 # UNIX Makefile for NASM documentation
8 exec_prefix = @
exec_prefix@
11 docdir
= $(prefix)/doc
/nasm
13 datarootdir
= @datarootdir@
16 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
17 INSTALL_DATA
= @INSTALL_DATA@
22 PS2PDF
= ps2pdf
# Part of GhostScript
25 OUT
= nasm.
info nasmdoc.ps nasmdoc.pdf
35 inslist.src
: inslist.pl ..
/insns.dat
36 $(PERL
) $(srcdir)/inslist.pl
38 # Consider html, txt and ps output a side effect
39 nasmdoc.dip
: nasmdoc.src rdsrc.pl inslist.src
41 $(PERL
) $(srcdir)/rdsrc.pl
< $<
44 nasmdoc.texi
: nasmdoc.dip
45 : Generated by side effect
47 nasmdoc.ps
: nasmdoc.dip nasmlogo.eps
$(srcdir)/..
/version genpsdriver.pl \
48 genps.pl psfonts.ph pswidth.ph head.ps
49 $(PERL
) $(srcdir)/genpsdriver.pl
> nasmdoc.ps
51 nasmdoc.pdf
: nasmdoc.ps
54 nasm.
info: info/nasm.
info
56 info/nasm.
info: nasmdoc.texi
59 mv
-f
*.
info *.info-
* info
61 # DVI output from texinfo (optional)
62 nasmdoc.
dvi: nasmdoc.texi
63 $(TEXI2DVI
) nasmdoc.texi
65 # Rules for building an OS/2 book
66 nasmdoc.ipf
: nasmdoc.texi
73 -rm -f
*.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
74 -rm -f
*.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
78 -rm -f
*.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
79 -rm -f nasmdoc
*.ps inslist.src
82 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
83 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
84 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
85 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)