Merge remote-tracking branch 'origin/nasm-2.15.xx'
[nasm.git] / doc / Makefile.in
blobe92437a06b0a40a5c31c011f64c2a652474b8e06
2 # UNIX Makefile for NASM documentation
5 @SET_MAKE@
7 top_srcdir = @top_srcdir@
8 srcdir = @srcdir@
9 VPATH = @srcdir@
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 bindir = @bindir@
13 mandir = @mandir@
14 docdir = @docdir@
15 htmldir = @htmldir@
16 infodir = @infodir@
17 datarootdir = @datarootdir@
19 INSTALL = @INSTALL@
20 INSTALL_PROGRAM = @INSTALL_PROGRAM@
21 INSTALL_DATA = @INSTALL_DATA@
23 PERL = perl -I$(srcdir)
25 PDFOPT = @PDFOPT@
27 MKDIR_P = @MKDIR_P@
28 RM_F = rm -f
29 RM_RF = rm -rf
30 CP_F = cp -f
31 CP_UF = cp -uf
33 # Optional tools
34 XZ = @XZ@
36 # Optional targets
37 XZFILES = @XZFILES@
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
46 .SUFFIXES:
47 .SUFFIXES: .pfa .ph
49 .PHONY: all xzfiles html clean spotless install
51 all: $(OUT)
53 xzfiles: $(XZOUT)
55 inslist.src: inslist.pl ../x86/insns.dat
56 $(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
58 html: $(HTMLAUX)
59 $(MKDIR_P) html
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
66 $(RM_F) html/*.html
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 \
83 -fontpath fontpath \
84 -fontmap Fontmap \
85 nasmdoc.dip > nasmdoc.ps
87 fontpath: nasmdoc.ps
88 @: Generated by side effect
90 Fontmap: nasmdoc.ps
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
102 $(RM_F) $@
103 $(XZ) -9e < $< > $@
105 clean:
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
111 spotless: clean
112 -$(RM_RF) html info
113 -$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.pdf.xz *.dvi
115 install: all
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)
125 .SECONDARY:
127 .DELETE_ON_ERROR: