3 # UNIX Makefile for NASM documentation
9 exec_prefix = @
exec_prefix@
12 docdir
= $(prefix)/doc
/nasm
16 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
17 INSTALL_DATA
= @INSTALL_DATA@
22 PS2PDF
= ps2pdf
# Part of GhostScript
25 OUT
= nasm.
info nasmdoc.ps nasmdoc.pdf
31 .SUFFIXES
: .src .texi .
info .ps .rtf .hpj .
dvi .pdf .txt .pl .ipf .inf
33 # Consider html, txt and ps output a side effect
34 nasmdoc.texi
: nasmdoc.src rdsrc.pl
36 $(PERL
) $(srcdir)/rdsrc.pl
< $<
39 nasmdoc.ps
: nasmdoc.texi
40 : Generated by side effect
42 nasm.
info: info/nasm.
info
44 info/nasm.
info: nasmdoc.texi
47 mv
-f
*.
info *.info-
* info
49 # DVI output from texinfo (optional)
50 nasmdoc.
dvi: nasmdoc.texi
51 $(TEXI2DVI
) nasmdoc.texi
54 nasmdoc.pdf
: nasmdoc.ps
55 $(PS2PDF
) nasmdoc.ps nasmdoc.pdf
57 # Rules for building an OS/2 book
58 nasmdoc.ipf
: nasmdoc.texi
65 -rm -f
*.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
66 -rm -f
*.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
69 -rm -rf html
info *.hlp
*.txt
*.ps
*.inf
*.pdf
*.
dvi
72 $(INSTALL_DATA
) info/* $(INSTALLROOT
)$(infodir)
73 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
74 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
75 $(INSTALL_DATA
) nasmdoc.ps nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)