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 # Consider html, txt and ps output a side effect
36 nasmdoc.dip
: nasmdoc.src rdsrc.pl
38 $(PERL
) $(srcdir)/rdsrc.pl
< $<
41 nasmdoc.texi
: nasmdoc.dip
42 : Generated by side effect
44 nasmdoc.ps
: nasmdoc.dip nasmlogo.eps
$(srcdir)/..
/version genpsdriver.pl \
45 genps.pl psfonts.ph pswidth.ph head.ps
46 $(PERL
) $(srcdir)/genpsdriver.pl
> nasmdoc.ps
48 nasmdoc.pdf
: nasmdoc.ps
51 nasm.
info: info/nasm.
info
53 info/nasm.
info: nasmdoc.texi
56 mv
-f
*.
info *.info-
* info
58 # DVI output from texinfo (optional)
59 nasmdoc.
dvi: nasmdoc.texi
60 $(TEXI2DVI
) nasmdoc.texi
62 # Rules for building an OS/2 book
63 nasmdoc.ipf
: nasmdoc.texi
70 -rm -f
*.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
71 -rm -f
*.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
75 -rm -f
*.hlp
*.txt
*.inf
*.pdf
*.
dvi
79 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
80 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
81 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
82 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)