NASM 0.98bf
[nasm/avx512.git] / doc / Makefile.in
blob78fafa3b548821ab7fe8e904f799b6942a408edb
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 .SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .ps .txt .pl
29 # Consider html, txt and src output a side effect
30 .src.texi:
31 mkdir -p html
32 $(PERL) ./rdsrc.pl < $<
33 mv -f *.html html
35 nasm.info: nasmdoc.texi
36 mkdir -p info
37 $(MAKEINFO) $<
38 mv -f *.info *.info-* info
40 clean:
41 -rm -f *.rtf *.hpj *.texi *.ph *.gid
43 spotless: clean
44 -rm -rf html info *.hlp *.txt *.ps
46 install: all
47 $(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
48 mkdir -p $(INSTALLROOT)$(docdir)/html
49 $(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
50 $(INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)