Don't delete config.h.in when doing "make spotless"
[nasm.git] / doc / Makefile.in
bloba3279e45d9be349509f25ab89f5ef3df6a970ec9
1 # $Id$
3 # UNIX Makefile for NASM documentation
6 srcdir = @srcdir@
7 VPATH = @srcdir@
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 bindir = @bindir@
11 mandir = @mandir@
12 docdir = $(prefix)/doc/nasm
13 infodir = @infodir@
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 -dOptimize=true # Part of GhostScript
24 SRCS = nasmdoc.src
25 OUT = nasm.info nasmdoc.ps nasmdoc.pdf
27 all: $(OUT)
29 os2: nasm.inf
31 # Consider html, txt and ps output a side effect
32 nasmdoc.dip: nasmdoc.src rdsrc.pl
33 mkdir -p html
34 $(PERL) $(srcdir)/rdsrc.pl < $<
35 mv -f *.html html
37 nasmdoc.texi: nasmdoc.dip
38 : Generated by side effect
40 nasmdoc.ps: nasmdoc.dip nasmlogo.eps ../version genpsdriver.pl \
41 genps.pl psfonts.ph pswidth.ph head.ps
42 $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
44 nasmdoc.pdf: nasmdoc.ps
45 $(PS2PDF) nasmdoc.ps nasmdoc.pdf
47 nasm.info: info/nasm.info
49 info/nasm.info: nasmdoc.texi
50 mkdir -p info
51 $(MAKEINFO) $<
52 mv -f *.info *.info-* info
54 # DVI output from texinfo (optional)
55 nasmdoc.dvi: nasmdoc.texi
56 $(TEXI2DVI) nasmdoc.texi
58 # Rules for building an OS/2 book
59 nasmdoc.ipf: nasmdoc.texi
60 texi2ipf $< >$@
62 nasm.inf: nasmdoc.ipf
63 ipfc -i -s $< $@
65 clean:
66 -rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
67 -rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
69 spotless: clean
70 -rm -rf html info
71 -rm -f *.hlp *.txt *.inf *.pdf *.dvi
72 -rm -f nasmdoc*.ps
74 install: all
75 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
76 mkdir -p $(INSTALLROOT)$(docdir)/html
77 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
78 $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)