nasm/doc/Makefile.in
H. Peter Anvin 4319b9561d Makefile.in: add ttfmetrics.ph as a dependency
The new module ttfmetrics.ph is a dependency.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2017-04-10 06:41:13 -07:00

109 lines
2.4 KiB
Makefile

#
# UNIX Makefile for NASM documentation
#
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
docdir = $(prefix)/doc/nasm
infodir = @infodir@
datarootdir = @datarootdir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
PERL = perl -I$(srcdir)
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
TEXI2IPF = texi2ipf
IPFC = ipfc
ACRODIST = acrodist # Acrobat Distiller
PSTOPDF = pstopdf # BSD/MacOS X utility
PS2PDF = ps2pdf # Part of GhostScript
RM_F = rm -f
RM_RF = rm -rf
SRCS = nasmdoc.src inslist.src changes.src version.src
OUT = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf
.SUFFIXES: .pfa .ph
all: $(OUT)
os2: nasm.inf
inslist.src: inslist.pl ../x86/insns.dat
$(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
.PHONY: html
html: html/nasmdoc0.html
RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
html/nasmdoc0.html: $(SRCS) rdsrc.pl
$(RDSRC) -ohtml html nasmdoc.src
nasmdoc.dip: $(SRCS) rdsrc.pl
$(RDSRC) dip nasmdoc.src
nasmdoc.texi: $(SRCS) rdsrc.pl
$(RDSRC) texi nasmdoc.src
nasmdoc.txt: $(SRCS) rdsrc.pl
$(RDSRC) txt nasmdoc.src
version.src: $(top_srcdir)/version.pl $(top_srcdir)/version
$(PERL) $(top_srcdir)/version.pl docsrc \
< $(top_srcdir)/version > version.src
nasmdoc.ps: nasmdoc.dip genps.pl afmmetrics.ph ttfmetrics.ph \
pswidth.ph nasmlogo.eps psfonts.ph head.ps
$(PERL) $(srcdir)/genps.pl -headps $(srcdir)/head.ps nasmdoc.dip \
> nasmdoc.ps
nasmdoc.pdf: nasmdoc.ps
$(PERL) pspdf.pl nasmdoc.ps nasmdoc.pdf
.PHONY: info
info: info/nasm.info
info/nasm.info: nasmdoc.texi
mkdir -p info
$(MAKEINFO) $<
mv -f *.info *.info-* info
# DVI output from texinfo (optional)
nasmdoc.dvi: nasmdoc.texi
$(TEXI2DVI) nasmdoc.texi
# Rules for building an OS/2 book
nasmdoc.ipf: nasmdoc.texi
$(TEXI2IPF) $< >$@
nasm.inf: nasmdoc.ipf
$(IPFC) -i -s $< $@
clean:
-$(RM_F) *.rtf *.hpj *.texi *.gid *.ipf *.dip
-$(RM_F) *.aux *.cp *.fn *.ky *.pg *.log *.toc *.tp *.vr
-$(RM_F) inslist.src version.src
spotless: clean
-$(RM_RF) html info
-$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.dvi
-$(RM_F) nasmdoc*.ps
install: all
mkdir -p $(INSTALLROOT)$(infodir)
$(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)