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
29 SRCS
= nasmdoc.src inslist.src changes.src
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
: $(SRCS
) rdsrc.pl
48 $(PERL
) $(srcdir)/rdsrc.pl html
< $<
51 nasmdoc.dip
: $(SRCS
) rdsrc.pl
52 $(PERL
) $(srcdir)/rdsrc.pl dip
< $<
54 nasmdoc.texi
: $(SRCS
) rdsrc.pl
55 $(PERL
) $(srcdir)/rdsrc.pl texi
< $<
57 nasmdoc.txt
: $(SRCS
) rdsrc.pl
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 mkdir
-p
$(INSTALLROOT
)$(infodir)
99 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
100 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
101 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
102 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)