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@
25 ACRODIST
= @ACRODIST@
# Acrobat Distiller
26 PSTOPDF
= @PSTOPDF@
# BSD/MacOS X utility
27 PS2PDF
= @PS2PDF@
# Part of GhostScript
30 OUT
= info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
40 inslist.src
: inslist.pl ..
/insns.dat
41 $(PERL
) $(srcdir)/inslist.pl
44 html
: html
/nasmdoc0.html
46 html
/nasmdoc0.html
: nasmdoc.src rdsrc.pl inslist.src
48 $(PERL
) $(srcdir)/rdsrc.pl html
< $<
51 nasmdoc.dip
: nasmdoc.src rdsrc.pl inslist.src
52 $(PERL
) $(srcdir)/rdsrc.pl dip
< $<
54 nasmdoc.texi
: nasmdoc.src rdsrc.pl inslist.src
55 $(PERL
) $(srcdir)/rdsrc.pl texi
< $<
57 nasmdoc.txt
: nasmdoc.src rdsrc.pl inslist.src
58 $(PERL
) $(srcdir)/rdsrc.pl txt
< $<
60 nasmdoc.ps
: nasmdoc.dip nasmlogo.eps
$(srcdir)/..
/version genpsdriver.pl \
61 genps.pl psfonts.ph pswidth.ph head.ps
62 $(PERL
) $(srcdir)/genpsdriver.pl
> nasmdoc.ps
64 nasmdoc.pdf
: nasmdoc.ps
65 $(ACRODIST
) -n
-q
--nosecurity
-o
$@
$< || \
72 info/nasm.
info: nasmdoc.texi
75 mv
-f
*.
info *.info-
* info
77 # DVI output from texinfo (optional)
78 nasmdoc.
dvi: nasmdoc.texi
79 $(TEXI2DVI
) nasmdoc.texi
81 # Rules for building an OS/2 book
82 nasmdoc.ipf
: nasmdoc.texi
89 -rm -f
*.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
90 -rm -f
*.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
94 -rm -f
*.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
95 -rm -f nasmdoc
*.ps inslist.src
98 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
99 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
100 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
101 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)