NASM 2.00rc3
[nasm/avx512.git] / doc / Makefile.in
blob5c2f9051111f547b90be1daf4a9d29fc887a524c
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 # Consider html, txt and ps output a side effect
36 nasmdoc.dip: nasmdoc.src rdsrc.pl
37 mkdir -p html
38 $(PERL) $(srcdir)/rdsrc.pl < $<
39 mv -f *.html html
41 nasmdoc.texi: nasmdoc.dip
42 : Generated by side effect
44 nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \
45 genps.pl psfonts.ph pswidth.ph head.ps
46 $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
48 nasmdoc.pdf: nasmdoc.ps
49 $(PS2PDF) nasmdoc.ps
51 nasm.info: info/nasm.info
53 info/nasm.info: nasmdoc.texi
54 mkdir -p info
55 $(MAKEINFO) $<
56 mv -f *.info *.info-* info
58 # DVI output from texinfo (optional)
59 nasmdoc.dvi: nasmdoc.texi
60 $(TEXI2DVI) nasmdoc.texi
62 # Rules for building an OS/2 book
63 nasmdoc.ipf: nasmdoc.texi
64 texi2ipf $< >$@
66 nasm.inf: nasmdoc.ipf
67 ipfc -i -s $< $@
69 clean:
70 -rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
71 -rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
73 spotless: clean
74 -rm -rf html info
75 -rm -f *.hlp *.txt *.inf *.pdf *.dvi
76 -rm -f nasmdoc*.ps
78 install: all
79 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
80 mkdir -p $(INSTALLROOT)$(docdir)/html
81 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
82 $(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)