2 # UNIX Makefile for NASM documentation
7 top_srcdir
= @top_srcdir@
11 exec_prefix = @
exec_prefix@
17 datarootdir
= @datarootdir@
20 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
21 INSTALL_DATA
= @INSTALL_DATA@
23 PERL
= perl
-I
$(srcdir)
39 # Auxiliary files referenced by the HTML files
40 HTMLAUX
= nasmdoc.css local.css nasmlogw.png
42 SRCS
= nasmdoc.src inslist.src changes.src warnings.src version.src
43 OUT
= html nasmdoc.txt nasmdoc.pdf
$(XZFILES
)
44 XZOUT
= nasmdoc.pdf.xz
49 .PHONY
: all xzfiles html
clean spotless
install
55 inslist.src
: inslist.pl ..
/x86
/insns.dat
56 $(PERL
) $(srcdir)/inslist.pl
$(srcdir)/..
/x86
/insns.dat
60 for f in
$(HTMLAUX
); do
$(CP_UF
) "$(srcdir)/$$f" html
/; done
61 $(MAKE
) html
/nasmdoc0.html
63 RDSRC
= $(PERL
) $(srcdir)/rdsrc.pl
-I
$(srcdir)/
65 html
/nasmdoc0.html
: $(SRCS
) rdsrc.pl
67 $(RDSRC
) -ohtml html nasmdoc.src
69 nasmdoc.dip
: $(SRCS
) rdsrc.pl
70 $(RDSRC
) dip nasmdoc.src
72 nasmdoc.txt
: $(SRCS
) rdsrc.pl
73 $(RDSRC
) txt nasmdoc.src
75 version.src
: $(top_srcdir
)/version.pl
$(top_srcdir
)/version
76 $(PERL
) $(top_srcdir
)/version.pl docsrc \
77 < $(top_srcdir
)/version
> version.src
79 nasmdoc.ps
: nasmdoc.dip genps.pl afmmetrics.ph ttfmetrics.ph \
80 pswidth.ph nasmlogo.eps psfonts.ph head.ps
81 $(PERL
) $(srcdir)/genps.pl
-epsdir
"$(srcdir)" \
82 -headps
$(srcdir)/head.ps \
85 nasmdoc.dip
> nasmdoc.ps
88 @
: Generated by side effect
91 @
: Generated by side effect
93 nasmdoc.pdf
: nasmdoc.ps pspdf.pl fontpath
94 $(PERL
) $(srcdir)/pspdf.pl \
95 $(PDFOPT
) $< $@ fontpath
97 nasmdoc-raw.pdf
: nasmdoc.ps pspdf.pl fontpath
98 $(PERL
) $(srcdir)/pspdf.pl
-nocompress \
99 $(PDFOPT
) $< $@ fontpath
101 nasmdoc.pdf.xz
: nasmdoc-raw.pdf
106 -$(RM_F
) *.rtf
*.hpj
*.texi
*.gid
*.ipf
*.dip
107 -$(RM_F
) *.aux
*.cp
*.fn
*.ky
*.pg
*.log
*.toc
*.tp
*.vr
108 -$(RM_F
) inslist.src version.src fontpath Fontmap
109 -$(RM_F
) nasmdoc
*.ps nasmdoc-raw.pdf
113 -$(RM_F
) *.hlp nasmdoc.txt
*.inf
*.pdf
*.pdf.xz
*.
dvi
116 $(MKDIR_P
) $(DESTDIR
)$(htmldir
)
117 $(INSTALL_DATA
) html
/* $(DESTDIR
)$(htmldir
)
118 $(MKDIR_P
) $(DESTDIR
)$(docdir
)
119 $(INSTALL_DATA
) nasmdoc.pdf nasmdoc.txt
$(DESTDIR
)$(docdir
)
122 # Dummy rules that changes make behavior
123 # (at end to avoid confusing non-GNU makes)