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
41 inslist.src
: inslist.pl ..
/x86
/insns.dat
42 $(PERL
) $(srcdir)/inslist.pl
$(srcdir)/..
/x86
/insns.dat
47 for f in
$(HTMLAUX
); do
$(CP_UF
) "$(srcdir)/$$f" html
/; done
48 $(MAKE
) html
/nasmdoc0.html
50 RDSRC
= $(PERL
) $(srcdir)/rdsrc.pl
-I
$(srcdir)/
52 html
/nasmdoc0.html
: $(SRCS
) rdsrc.pl
54 $(RDSRC
) -ohtml html nasmdoc.src
56 nasmdoc.dip
: $(SRCS
) rdsrc.pl
57 $(RDSRC
) dip nasmdoc.src
59 nasmdoc.txt
: $(SRCS
) rdsrc.pl
60 $(RDSRC
) txt nasmdoc.src
62 version.src
: $(top_srcdir
)/version.pl
$(top_srcdir
)/version
63 $(PERL
) $(top_srcdir
)/version.pl docsrc \
64 < $(top_srcdir
)/version
> version.src
66 nasmdoc.ps
: nasmdoc.dip genps.pl afmmetrics.ph ttfmetrics.ph \
67 pswidth.ph nasmlogo.eps psfonts.ph head.ps
68 $(PERL
) $(srcdir)/genps.pl
-epsdir
"$(srcdir)" \
69 -headps
$(srcdir)/head.ps nasmdoc.dip \
72 nasmdoc.pdf
: nasmdoc.ps pspdf.pl
73 $(PERL
) $(srcdir)/pspdf.pl
$(PDFOPT
) nasmdoc.ps nasmdoc.pdf
76 -$(RM_F
) *.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
77 -$(RM_F
) *.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
78 -$(RM_F
) inslist.src version.src
83 -$(RM_F
) *.hlp nasmdoc.txt
*.inf
*.pdf
*.
dvi
86 $(MKDIR
) -p
$(DESTDIR
)$(htmldir
)
87 $(INSTALL_DATA
) html
/* $(DESTDIR
)$(htmldir
)
88 $(MKDIR
) -p
$(DESTDIR
)$(docdir
)
89 $(INSTALL_DATA
) nasmdoc.pdf nasmdoc.txt
$(DESTDIR
)$(docdir
)