NASM 0.98.12
[nasm/avx512.git] / doc / Makefile.in
bloba7f2ab987df6a934efc2ce92eb28dbaa38c599f7
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
22 SRCS = nasmdoc.src
23 OUT = nasm.info
25 all: $(OUT)
27 os2: nasm.inf
29 .SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .ps .txt .pl .ipf .inf
31 # Consider html, txt and src output a side effect
32 .src.texi:
33 mkdir -p html
34 $(PERL) ./rdsrc.pl < $<
35 mv -f *.html html
37 nasm.info: nasmdoc.texi
38 mkdir -p info
39 $(MAKEINFO) $<
40 mv -f *.info *.info-* info
42 # Rules for building an OS/2 book
43 .texi.ipf:
44 texi2ipf $< >$@
46 nasm.inf: nasmdoc.ipf
47 ipfc -i -s $< $@
49 clean:
50 -rm -f *.rtf *.hpj *.texi *.ph *.gid *.ipf
52 spotless: clean
53 -rm -rf html info *.hlp *.txt *.ps *.inf
55 install: all
56 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
57 mkdir -p $(INSTALLROOT)$(docdir)/html
58 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
59 $(INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)