openwcom.mak: wmake uses & for continuation, not \ (sigh)
[nasm.git] / doc / Makefile.in
blob4b65662a98ed658dec548390a00d05929822c0fe
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@
13 datarootdir = @datarootdir@
15 INSTALL = @INSTALL@
16 INSTALL_PROGRAM = @INSTALL_PROGRAM@
17 INSTALL_DATA = @INSTALL_DATA@
19 PERL = perl
20 MAKEINFO = makeinfo
21 TEXI2DVI = texi2dvi
22 PS2PDF = ps2pdf # Part of GhostScript
24 SRCS = nasmdoc.src
25 OUT = nasm.info nasmdoc.ps nasmdoc.pdf
27 # exports
28 export srcdir
29 export PERL
31 all: $(OUT)
33 os2: nasm.inf
35 inslist.src: inslist.pl ../insns.dat
36 $(PERL) $(srcdir)/inslist.pl
38 # Consider html, txt and ps output a side effect
39 nasmdoc.dip: nasmdoc.src rdsrc.pl inslist.src
40 mkdir -p html
41 $(PERL) $(srcdir)/rdsrc.pl < $<
42 mv -f *.html html
44 nasmdoc.texi: nasmdoc.dip
45 : Generated by side effect
47 nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \
48 genps.pl psfonts.ph pswidth.ph head.ps
49 $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
51 nasmdoc.pdf: nasmdoc.ps
52 $(PS2PDF) nasmdoc.ps
54 nasm.info: info/nasm.info
56 info/nasm.info: nasmdoc.texi
57 mkdir -p info
58 $(MAKEINFO) $<
59 mv -f *.info *.info-* info
61 # DVI output from texinfo (optional)
62 nasmdoc.dvi: nasmdoc.texi
63 $(TEXI2DVI) nasmdoc.texi
65 # Rules for building an OS/2 book
66 nasmdoc.ipf: nasmdoc.texi
67 texi2ipf $< >$@
69 nasm.inf: nasmdoc.ipf
70 ipfc -i -s $< $@
72 clean:
73 -rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
74 -rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
76 spotless: clean
77 -rm -rf html info
78 -rm -f *.hlp nasmdoc.txt *.inf *.pdf *.dvi
79 -rm -f nasmdoc*.ps inslist.src
81 install: all
82 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
83 mkdir -p $(INSTALLROOT)$(docdir)/html
84 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
85 $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)