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)
29 # Auxiliary files referenced by the HTML files
30 HTMLAUX
= nasmdoc.css local.css nasmlogw.png
32 SRCS
= nasmdoc.src inslist.src changes.src version.src
33 OUT
= html nasmdoc.txt nasmdoc.pdf
39 inslist.src
: inslist.pl ..
/x86
/insns.dat
40 $(PERL
) $(srcdir)/inslist.pl
$(srcdir)/..
/x86
/insns.dat
45 for f in
$(HTMLAUX
); do
$(CP_UF
) "$(srcdir)/$$f" html
/; done
46 $(MAKE
) html
/nasmdoc0.html
48 RDSRC
= $(PERL
) $(srcdir)/rdsrc.pl
-I
$(srcdir)/
50 html
/nasmdoc0.html
: $(SRCS
) rdsrc.pl
52 $(RDSRC
) -ohtml html nasmdoc.src
54 nasmdoc.dip
: $(SRCS
) rdsrc.pl
55 $(RDSRC
) dip 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 genps.pl afmmetrics.ph ttfmetrics.ph \
65 pswidth.ph nasmlogo.eps psfonts.ph head.ps
66 $(PERL
) $(srcdir)/genps.pl
-epsdir
"$(srcdir)" \
67 -headps
$(srcdir)/head.ps nasmdoc.dip \
70 nasmdoc.pdf
: nasmdoc.ps pspdf.pl
71 $(PERL
) $(srcdir)/pspdf.pl
$(PDFOPT
) nasmdoc.ps nasmdoc.pdf
74 -$(RM_F
) *.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
75 -$(RM_F
) *.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
76 -$(RM_F
) inslist.src version.src
81 -$(RM_F
) *.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
84 mkdir
-p
$(INSTALLROOT
)$(docdir
)/html
85 $(INSTALL_DATA
) html
/* $(INSTALLROOT
)$(docdir
)/html
86 $(INSTALL_DATA
) nasmdoc.pdf nasmdoc.txt
$(INSTALLROOT
)$(docdir
)