summaryrefslogtreecommitdiff
path: root/doc/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-04-06 20:20:04 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-04-06 20:20:04 -0700
commit77f4395247cc1ff6b5d5d582d0e2f609174028db (patch)
treea8214e49c39364934050a530ad8f7db11985d8b0 /doc/Makefile.in
parentd31a86e5b169d5a1b349b5f9ccd8089e92c14d80 (diff)
downloadnasm-77f4395247cc1ff6b5d5d582d0e2f609174028db.tar.gz
msvc: finally make it possible to build the full Windows package
Finally make it possible to build the full Windows install package with MSVC tools. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r--doc/Makefile.in33
1 files changed, 14 insertions, 19 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 2b8ad9ee..848f6222 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -27,13 +27,12 @@ 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
-# exports
-export srcdir
-export PERL
-
all: $(OUT)
os2: nasm.inf
@@ -47,18 +46,16 @@ html: html/nasmdoc0.html
RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
html/nasmdoc0.html: $(SRCS) rdsrc.pl
- mkdir -p html
- $(RDSRC) html "$<"
- mv -f *.html html
+ $(RDSRC) html nasmdoc.src
nasmdoc.dip: $(SRCS) rdsrc.pl
- $(RDSRC) dip "$<"
+ $(RDSRC) dip nasmdoc.src
nasmdoc.texi: $(SRCS) rdsrc.pl
- $(RDSRC) texi "$<"
+ $(RDSRC) texi nasmdoc.src
nasmdoc.txt: $(SRCS) rdsrc.pl
- $(RDSRC) txt "$<"
+ $(RDSRC) txt nasmdoc.src
version.src: $(top_srcdir)/version.pl $(top_srcdir)/version
$(PERL) $(top_srcdir)/version.pl docsrc \
@@ -70,9 +67,7 @@ nasmdoc.ps: nasmdoc.dip nasmlogo.eps \
> nasmdoc.ps
nasmdoc.pdf: nasmdoc.ps
- $(ACRODIST) -n -q --nosecurity -o $@ $< || \
- $(PS2PDF) $< $@ || \
- $(PSTOPDF) $< -o $@
+ $(PERL) pspdf.pl nasmdoc.ps nasmdoc.pdf
.PHONY: info
info: info/nasm.info
@@ -94,14 +89,14 @@ 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
+ -$(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
+ -$(RM_RF) html info
+ -$(RM_F) *.hlp nasmdoc.txt *.inf *.pdf *.dvi
+ -$(RM_F) nasmdoc*.ps
install: all
mkdir -p $(INSTALLROOT)$(infodir)