nasm/doc/Makefile.in

78 lines
1.6 KiB
Makefile
Raw Normal View History

2002-04-30 20:58:18 +00: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
TEXI2DVI = texi2dvi
PS2PDF = ps2pdf -dOptimize=true # Part of GhostScript
2002-04-30 20:58:18 +00:00
SRCS = nasmdoc.src
OUT = nasm.info nasmdoc.ps nasmdoc.pdf
2002-04-30 20:58:18 +00:00
all: $(OUT)
2002-04-30 21:00:33 +00:00
os2: nasm.inf
# Consider html, txt and ps output a side effect
2002-05-14 21:21:24 +00:00
nasmdoc.dip: nasmdoc.src rdsrc.pl
2002-04-30 20:58:18 +00:00
mkdir -p html
$(PERL) $(srcdir)/rdsrc.pl < $<
2002-04-30 20:58:18 +00:00
mv -f *.html html
2002-05-14 21:21:24 +00:00
nasmdoc.texi: nasmdoc.dip
: Generated by side effect
nasmdoc.ps: nasmdoc.dip nasmlogo.eps genps.pl psfonts.ph pswidth.ph head.ps
$(PERL) $(srcdir)/genps.pl nasmdoc.dip > nasmdoc.ps
2002-05-14 21:21:24 +00:00
nasmdoc.pdf: nasmdoc.ps
$(PS2PDF) nasmdoc.ps nasmdoc.pdf
2002-05-14 21:21:24 +00:00
nasm.info: info/nasm.info
info/nasm.info: nasmdoc.texi
2002-04-30 20:58:18 +00:00
mkdir -p info
$(MAKEINFO) $<
mv -f *.info *.info-* info
# DVI output from texinfo (optional)
nasmdoc.dvi: nasmdoc.texi
$(TEXI2DVI) nasmdoc.texi
2002-04-30 21:00:33 +00:00
# Rules for building an OS/2 book
nasmdoc.ipf: nasmdoc.texi
2002-04-30 21:00:33 +00:00
texi2ipf $< >$@
nasm.inf: nasmdoc.ipf
ipfc -i -s $< $@
2002-04-30 20:58:18 +00:00
clean:
-rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
-rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
2002-04-30 20:58:18 +00:00
spotless: clean
2002-05-14 21:21:24 +00:00
-rm -rf html info
-rm -f *.hlp *.txt *.inf *.pdf *.dvi
-rm -f nasmdoc*.ps
2002-04-30 20:58:18 +00:00
install: all
$(INSTALL_DATA) info/* $(INSTALLROOT)$(infodir)
mkdir -p $(INSTALLROOT)$(docdir)/html
$(INSTALL_DATA) html/* $(INSTALLROOT)$(docdir)/html
$(INSTALL_DATA) nasmdoc.ps nasmdoc.pdf nasmdoc.txt $(INSTALLROOT)$(docdir)