nasm/doc/Makefile.in

60 lines
1.1 KiB
Makefile
Raw Normal View History

2002-05-01 04:58:18 +08:00
# $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)
2002-05-01 05:00:33 +08:00
os2: nasm.inf
.SUFFIXES: .src .texi .info .ps .rtf .hpj .dvi .ps .txt .pl .ipf .inf
2002-05-01 04:58:18 +08:00
# 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
2002-05-01 05:00:33 +08:00
# Rules for building an OS/2 book
.texi.ipf:
texi2ipf $< >$@
nasm.inf: nasmdoc.ipf
ipfc -i -s $< $@
2002-05-01 04:58:18 +08:00
clean:
2002-05-01 05:00:33 +08:00
-rm -f *.rtf *.hpj *.texi *.ph *.gid *.ipf
2002-05-01 04:58:18 +08:00
spotless: clean
2002-05-01 05:00:33 +08:00
-rm -rf html info *.hlp *.txt *.ps *.inf
2002-05-01 04:58:18 +08:00
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)