nasm/doc/Makefile.in
H. Peter Anvin 1cd0e2d5bf NASM 0.98.08
2002-04-30 21:00:33 +00:00

60 lines
1.1 KiB
Makefile

# $Id$
#
# UNIX Makefile for NASM documentation
#
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
docdir = $(prefix)/doc/nasm
infodir = @infodir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PERL = perl
MAKEINFO = makeinfo
SRCS = nasmdoc.src
OUT = nasm.info
all: $(OUT)
os2: nasm.inf
.SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .ps .txt .pl .ipf .inf
# Consider html, txt and src output a side effect
.src.texi:
mkdir -p html
$(PERL) ./rdsrc.pl < $<
mv -f *.html html
nasm.info: nasmdoc.texi
mkdir -p info
$(MAKEINFO) $<
mv -f *.info *.info-* info
# Rules for building an OS/2 book
.texi.ipf:
texi2ipf $< >$@
nasm.inf: nasmdoc.ipf
ipfc -i -s $< $@
clean:
-rm -f *.rtf *.hpj *.texi *.ph *.gid *.ipf
spotless: clean
-rm -rf html info *.hlp *.txt *.ps *.inf
install: all
$(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
mkdir -p $(INSTALLROOT)$(docdir)/html
$(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
$(INSTALL_DATA) nasmdoc.ps nasmdoc.txt $(INSTALLROOT)$(docdir)