aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2017-04-14 01:50:13 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2017-04-14 01:50:13 -0700
commit22fe5b07601749f85a5250b0f537b71cea46d50f (patch)
tree8f7f66b69069ccefb6a4fafd73e6bd57cbace753 /doc/Makefile.in
parent322401fcbc9d67f22e28a146fcf7917012d8d68d (diff)
downloadnasm-daily-22fe5b07601749f85a5250b0f537b71cea46d50f.tar.gz
nasm-daily-22fe5b07601749f85a5250b0f537b71cea46d50f.tar.xz
nasm-daily-22fe5b07601749f85a5250b0f537b71cea46d50f.zip
doc: generate proper XHTML for the contents and index
The table of contents and index needed rework to be valid (X)HTML. The TOC in particular needed some fairly significant rework - it is supposed to be an ordered list, after all. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'doc/Makefile.in')
-rw-r--r--doc/Makefile.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in
index cc6969ec..ac091e99 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -25,8 +25,7 @@ RM_F = rm -f
RM_RF = rm -rf
CP_F = cp -f
-SRCS = nasmdoc.src inslist.src changes.src version.src \
- nasmdoc.css nasmlogw.png
+SRCS = nasmdoc.src inslist.src changes.src version.src
OUT = html nasmdoc.txt nasmdoc.pdf
.SUFFIXES: .pfa .ph
@@ -37,11 +36,14 @@ inslist.src: inslist.pl ../x86/insns.dat
$(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
.PHONY: html
-html: html/nasmdoc0.html html/nasmdoc.css html/nasmlogw.png
+html: $(SRCS) rdsrc.pl nasmdoc.css nasmlogw.png
+ mkdir -p html
+ $(MAKE) html/nasmdoc0.html html/nasmdoc.css html/nasmlogw.png
RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
html/nasmdoc0.html: $(SRCS) rdsrc.pl
+ $(RM_F) html/*.html
$(RDSRC) -ohtml html nasmdoc.src
html/nasmdoc.css: nasmdoc.css