2 # UNIX Makefile for NASM documentation
5 top_srcdir
= @top_srcdir@
9 exec_prefix = @
exec_prefix@
12 docdir
= $(prefix)/doc
/nasm
14 datarootdir
= @datarootdir@
17 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
18 INSTALL_DATA
= @INSTALL_DATA@
20 PERL
= perl
-I
$(srcdir)
26 ACRODIST
= acrodist
# Acrobat Distiller
27 PSTOPDF
= pstopdf
# BSD/MacOS X utility
28 PS2PDF
= ps2pdf
# Part of GhostScript
33 SRCS
= nasmdoc.src inslist.src changes.src version.src
34 OUT
= info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
40 inslist.src
: inslist.pl ..
/x86
/insns.dat
41 $(PERL
) $(srcdir)/inslist.pl
$(srcdir)/..
/x86
/insns.dat
44 html
: html
/nasmdoc0.html
46 RDSRC
= $(PERL
) $(srcdir)/rdsrc.pl
-I
$(srcdir)/
48 html
/nasmdoc0.html
: $(SRCS
) rdsrc.pl
49 $(RDSRC
) html nasmdoc.src
51 nasmdoc.dip
: $(SRCS
) rdsrc.pl
52 $(RDSRC
) dip nasmdoc.src
54 nasmdoc.texi
: $(SRCS
) rdsrc.pl
55 $(RDSRC
) texi nasmdoc.src
57 nasmdoc.txt
: $(SRCS
) rdsrc.pl
58 $(RDSRC
) txt nasmdoc.src
60 version.src
: $(top_srcdir
)/version.pl
$(top_srcdir
)/version
61 $(PERL
) $(top_srcdir
)/version.pl docsrc \
62 < $(top_srcdir
)/version
> version.src
64 nasmdoc.ps
: nasmdoc.dip nasmlogo.eps \
65 genps.pl psfonts.ph pswidth.ph head.ps
66 $(PERL
) $(srcdir)/genps.pl
-headps
$(srcdir)/head.ps nasmdoc.dip \
69 nasmdoc.pdf
: nasmdoc.ps
70 $(PERL
) pspdf.pl nasmdoc.ps nasmdoc.pdf
75 info/nasm.
info: nasmdoc.texi
78 mv
-f
*.
info *.info-
* info
80 # DVI output from texinfo (optional)
81 nasmdoc.
dvi: nasmdoc.texi
82 $(TEXI2DVI
) nasmdoc.texi
84 # Rules for building an OS/2 book
85 nasmdoc.ipf
: nasmdoc.texi
92 -$(RM_F
) *.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
93 -$(RM_F
) *.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
94 -$(RM_F
) inslist.src version.src
98 -$(RM_F
) *.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
102 mkdir
-p
$(INSTALLROOT
)$(infodir)
103 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
104 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
105 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
106 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)