mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
4df1386eb0
Update release notes and documentation for 2.15 Signed-off-by: Andrey Matyukov <andrey.matyukov@intel.com> Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
99 lines
2.3 KiB
Makefile
99 lines
2.3 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 = @docdir@
|
|
htmldir = @htmldir@
|
|
infodir = @infodir@
|
|
datarootdir = @datarootdir@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
PERL = perl -I$(srcdir)
|
|
|
|
PDFOPT = @PDFOPT@
|
|
|
|
MKDIR = mkdir
|
|
RM_F = rm -f
|
|
RM_RF = rm -rf
|
|
CP_F = cp -f
|
|
CP_UF = cp -ufv
|
|
|
|
# Auxiliary files referenced by the HTML files
|
|
HTMLAUX = nasmdoc.css local.css nasmlogw.png
|
|
|
|
SRCS = nasmdoc.src inslist.src changes.src warnings.src version.src
|
|
OUT = html nasmdoc.txt nasmdoc.pdf
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .pfa .ph
|
|
|
|
all: $(OUT)
|
|
|
|
inslist.src: inslist.pl ../x86/insns.dat
|
|
$(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
|
|
|
|
.PHONY: html nasmdoc.ps
|
|
html: $(HTMLAUX)
|
|
$(MKDIR) -p html
|
|
for f in $(HTMLAUX); do $(CP_UF) "$(srcdir)/$$f" html/; done
|
|
$(MAKE) html/nasmdoc0.html
|
|
|
|
RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
|
|
|
|
html/nasmdoc0.html: $(SRCS) rdsrc.pl
|
|
$(RM_F) html/*.html
|
|
$(RDSRC) -ohtml html nasmdoc.src
|
|
|
|
nasmdoc.dip: $(SRCS) rdsrc.pl
|
|
$(RDSRC) dip 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 -epsdir "$(srcdir)" \
|
|
-headps $(srcdir)/head.ps \
|
|
-fontpath fontpath \
|
|
-fontmap Fontmap \
|
|
nasmdoc.dip > nasmdoc.ps
|
|
|
|
fontpath: nasmdoc.ps
|
|
@: Generated by side effect
|
|
|
|
Fontmap: nasmdoc.ps
|
|
@: Generated by side effect
|
|
|
|
nasmdoc.pdf: nasmdoc.ps pspdf.pl fontpath
|
|
$(PERL) $(srcdir)/pspdf.pl $(PDFOPT) nasmdoc.ps nasmdoc.pdf fontpath
|
|
|
|
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 fontpath Fontmap
|
|
-$(RM_F) nasmdoc*.ps
|
|
|
|
spotless: clean
|
|
-$(RM_RF) html info
|
|
-$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.dvi
|
|
|
|
install: all
|
|
$(MKDIR) -p $(DESTDIR)$(htmldir)
|
|
$(INSTALL_DATA) html/* $(DESTDIR)$(htmldir)
|
|
$(MKDIR) -p $(DESTDIR)$(docdir)
|
|
$(INSTALL_DATA) nasmdoc.pdf nasmdoc.txt $(DESTDIR)$(docdir)
|