nasm/doc/Makefile.in

104 lines
2.2 KiB
Makefile
Raw Normal View History

2002-05-01 04:58:18 +08:00
#
# 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@
datarootdir = @datarootdir@
2002-05-01 04:58:18 +08:00
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PERL = perl
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXI2IPF = texi2ipf
IPFC = ipfc
ACRODIST = @ACRODIST@ # Acrobat Distiller
PSTOPDF = @PSTOPDF@ # BSD/MacOS X utility
PS2PDF = @PS2PDF@ # Part of GhostScript
2002-05-01 04:58:18 +08:00
SRCS = nasmdoc.src inslist.src changes.src
2008-06-17 12:19:34 +08:00
OUT = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
2002-05-01 04:58:18 +08:00
# exports
export srcdir
export PERL
2002-05-01 04:58:18 +08:00
all: $(OUT)
2002-05-01 05:00:33 +08:00
os2: nasm.inf
inslist.src: inslist.pl ../insns.dat
$(PERL) $(srcdir)/inslist.pl
.PHONY: html
html: html/nasmdoc0.html
html/nasmdoc0.html: $(SRCS) rdsrc.pl
2002-05-01 04:58:18 +08:00
mkdir -p html
$(PERL) $(srcdir)/rdsrc.pl html < $<
2002-05-01 04:58:18 +08:00
mv -f *.html html
nasmdoc.dip: $(SRCS) rdsrc.pl
$(PERL) $(srcdir)/rdsrc.pl dip < $<
nasmdoc.texi: $(SRCS) rdsrc.pl
$(PERL) $(srcdir)/rdsrc.pl texi < $<
nasmdoc.txt: $(SRCS) rdsrc.pl
$(PERL) $(srcdir)/rdsrc.pl txt < $<
nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \
genps.pl psfonts.ph pswidth.ph head.ps
$(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps
2002-05-15 05:21:24 +08:00
nasmdoc.pdf: nasmdoc.ps
$(ACRODIST) -n -q --nosecurity -o $@ $< || \
$(PS2PDF) $< $@ || \
$(PSTOPDF) $< -o $@
2002-05-15 05:21:24 +08:00
.PHONY: info
info: info/nasm.info
info/nasm.info: nasmdoc.texi
2002-05-01 04:58:18 +08:00
mkdir -p info
$(MAKEINFO) $<
mv -f *.info *.info-* info
# DVI output from texinfo (optional)
nasmdoc.dvi: nasmdoc.texi
$(TEXI2DVI) nasmdoc.texi
2002-05-01 05:00:33 +08:00
# Rules for building an OS/2 book
nasmdoc.ipf: nasmdoc.texi
$(TEXI2IPF) $< >$@
2002-05-01 05:00:33 +08:00
nasm.inf: nasmdoc.ipf
$(IPFC) -i -s $< $@
2002-05-01 05:00:33 +08:00
2002-05-01 04:58:18 +08:00
clean:
-rm -f *.rtf *.hpj *.texi *.gid *.ipf *.dip
-rm -f *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
-rm -f inslist.src
2002-05-01 04:58:18 +08:00
spotless: clean
2002-05-15 05:21:24 +08:00
-rm -rf html info
-rm -f *.hlp nasmdoc.txt *.inf *.pdf *.dvi
-rm -f nasmdoc*.ps
2002-05-01 04:58:18 +08:00
install: all
2009-07-06 09:48:50 +08:00
mkdir -p $(INSTALLROOT)$(infodir)
2002-05-01 04:58:18 +08:00
$(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)