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
= info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
35 inslist.src
: inslist.pl ..
/insns.dat
36 $(PERL
) $(srcdir)/inslist.pl
39 html
: html
/nasmdoc0.html
41 html
/nasmdoc0.html
: nasmdoc.src rdsrc.pl inslist.src
43 $(PERL
) $(srcdir)/rdsrc.pl html
< $<
46 nasmdoc.dip
: nasmdoc.src rdsrc.pl inslist.src
47 $(PERL
) $(srcdir)/rdsrc.pl dip
< $<
49 nasmdoc.texi
: nasmdoc.src rdsrc.pl inslist.src
50 $(PERL
) $(srcdir)/rdsrc.pl texi
< $<
52 nasmdoc.txt
: nasmdoc.src rdsrc.pl inslist.src
53 $(PERL
) $(srcdir)/rdsrc.pl txt
< $<
55 nasmdoc.ps
: nasmdoc.dip nasmlogo.eps
$(srcdir)/..
/version genpsdriver.pl \
56 genps.pl psfonts.ph pswidth.ph head.ps
57 $(PERL
) $(srcdir)/genpsdriver.pl
> nasmdoc.ps
59 nasmdoc.pdf
: nasmdoc.ps
65 info/nasm.
info: nasmdoc.texi
68 mv
-f
*.
info *.info-
* info
70 # DVI output from texinfo (optional)
71 nasmdoc.
dvi: nasmdoc.texi
72 $(TEXI2DVI
) nasmdoc.texi
74 # Rules for building an OS/2 book
75 nasmdoc.ipf
: nasmdoc.texi
82 -rm -f
*.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
83 -rm -f
*.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
87 -rm -f
*.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
88 -rm -f nasmdoc
*.ps inslist.src
91 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
92 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
93 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
94 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)