Version 0.99.03
[nasm/avx512.git] / doc / Makefile.in
blob9af3bbec71837ce482f30d404283eded3c06c291
2 # UNIX Makefile for NASM documentation
5 srcdir = @srcdir@
6 VPATH = @srcdir@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 bindir = @bindir@
10 mandir = @mandir@
11 docdir = $(prefix)/doc/nasm
12 infodir = @infodir@
14 INSTALL = @INSTALL@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_DATA = @INSTALL_DATA@
18 PERL = perl
19 MAKEINFO = makeinfo
20 TEXI2DVI = texi2dvi
21 PS2PDF = ps2pdf -dOptimize=true # Part of GhostScript
23 SRCS = nasmdoc.src
24 OUT = nasm.info nasmdoc.ps nasmdoc.pdf
26 # exports
27 export srcdir
28 export PERL
30 all: $(OUT)
32 os2: nasm.inf
34 # Consider html, txt and ps output a side effect
35 nasmdoc.dip: nasmdoc.src rdsrc.pl
36 mkdir -p html
37 $(PERL) $(srcdir)/rdsrc.pl < $<
38 mv -f *.html html
40 nasmdoc.texi: nasmdoc.dip
41 : Generated by side effect
43 nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \
44 genps.pl psfonts.ph pswidth.ph head.ps
45 $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
47 nasmdoc.pdf: nasmdoc.ps
48 $(PS2PDF) nasmdoc.ps
50 nasm.info: info/nasm.info
52 info/nasm.info: nasmdoc.texi
53 mkdir -p info
54 $(MAKEINFO) $<
55 mv -f *.info *.info-* info
57 # DVI output from texinfo (optional)
58 nasmdoc.dvi: nasmdoc.texi
59 $(TEXI2DVI) nasmdoc.texi
61 # Rules for building an OS/2 book
62 nasmdoc.ipf: nasmdoc.texi
63 texi2ipf $< >$@
65 nasm.inf: nasmdoc.ipf
66 ipfc -i -s $< $@
68 clean:
69 -rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
70 -rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
72 spotless: clean
73 -rm -rf html info
74 -rm -f *.hlp *.txt *.inf *.pdf *.dvi
75 -rm -f nasmdoc*.ps
77 install: all
78 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
79 mkdir -p $(INSTALLROOT)$(docdir)/html
80 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
81 $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)