2 # UNIX Makefile for NASM documentation
5 top_srcdir
= @top_srcdir@
9 exec_prefix = @
exec_prefix@
15 datarootdir
= @datarootdir@
18 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
19 INSTALL_DATA
= @INSTALL_DATA@
21 PERL
= perl
-I
$(srcdir)
31 # Auxiliary files referenced by the HTML files
32 HTMLAUX
= nasmdoc.css local.css nasmlogw.png
34 SRCS
= nasmdoc.src inslist.src changes.src version.src
35 OUT
= html nasmdoc.txt nasmdoc.pdf
42 inslist.src
: inslist.pl ..
/x86
/insns.dat
43 $(PERL
) $(srcdir)/inslist.pl
$(srcdir)/..
/x86
/insns.dat
48 for f in
$(HTMLAUX
); do
$(CP_UF
) "$(srcdir)/$$f" html
/; done
49 $(MAKE
) html
/nasmdoc0.html
51 RDSRC
= $(PERL
) $(srcdir)/rdsrc.pl
-I
$(srcdir)/
53 html
/nasmdoc0.html
: $(SRCS
) rdsrc.pl
55 $(RDSRC
) -ohtml html nasmdoc.src
57 nasmdoc.dip
: $(SRCS
) rdsrc.pl
58 $(RDSRC
) dip nasmdoc.src
60 nasmdoc.txt
: $(SRCS
) rdsrc.pl
61 $(RDSRC
) txt nasmdoc.src
63 version.src
: $(top_srcdir
)/version.pl
$(top_srcdir
)/version
64 $(PERL
) $(top_srcdir
)/version.pl docsrc \
65 < $(top_srcdir
)/version
> version.src
67 nasmdoc.ps
: nasmdoc.dip genps.pl afmmetrics.ph ttfmetrics.ph \
68 pswidth.ph nasmlogo.eps psfonts.ph head.ps
69 $(PERL
) $(srcdir)/genps.pl
-epsdir
"$(srcdir)" \
70 -headps
$(srcdir)/head.ps nasmdoc.dip \
73 nasmdoc.pdf
: nasmdoc.ps pspdf.pl
74 $(PERL
) $(srcdir)/pspdf.pl
$(PDFOPT
) nasmdoc.ps nasmdoc.pdf
77 -$(RM_F
) *.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
78 -$(RM_F
) *.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
79 -$(RM_F
) inslist.src version.src
84 -$(RM_F
) *.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
87 $(MKDIR
) -p
$(DESTDIR
)$(htmldir
)
88 $(INSTALL_DATA
) html
/* $(DESTDIR
)$(htmldir
)
89 $(MKDIR
) -p
$(DESTDIR
)$(docdir
)
90 $(INSTALL_DATA
) nasmdoc.pdf nasmdoc.txt
$(DESTDIR
)$(docdir
)