path: root/doc/Makefile.in
diff options
authorH. Peter Anvin <hpa@zytor.com>2017-04-16 23:52:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-04-16 23:52:23 -0700
commitd31a74e301ee6a09b29b610a83ff2c1580b9f998 (patch)
tree7c021a9e0416377f13d74b3297c4474d20f2d1a7 /doc/Makefile.in
parent74fa0a736ab769dd07ebe3c98b7e94543b558134 (diff)
doc: add a local.css specifically to be overridden locallynasm-2.13rc18-20170417
Add a file local.css which is referenced *after* nasmdoc.css, thus overriding the latter. This file intentionally has no actual content, which means it can be overridden locally for any desired content, e.g. indexing into web fonts or overriding any of the style. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc/Makefile.in')
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/Makefile.in b/doc/Makefile.in
index c43f029c..4f957da7 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -24,6 +24,10 @@ PDFOPT = @PDFOPT@
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 version.src
OUT = html nasmdoc.txt nasmdoc.pdf
@@ -36,9 +40,10 @@ inslist.src: inslist.pl ../x86/insns.dat
$(PERL) $(srcdir)/inslist.pl $(srcdir)/../x86/insns.dat
.PHONY: html
-html: $(SRCS) rdsrc.pl nasmdoc.css nasmlogw.png
+html: $(HTMLAUX)
mkdir -p html
- $(MAKE) html/nasmdoc0.html html/nasmdoc.css html/nasmlogw.png
+ for f in $(HTMLAUX); do $(CP_UF) "$(srcdir)/$$f" html/; done
+ $(MAKE) html/nasmdoc0.html
RDSRC = $(PERL) $(srcdir)/rdsrc.pl -I$(srcdir)/
@@ -46,12 +51,6 @@ html/nasmdoc0.html: $(SRCS) rdsrc.pl
$(RM_F) html/*.html
$(RDSRC) -ohtml html nasmdoc.src
-html/nasmdoc.css: nasmdoc.css
- $(CP_F) $(srcdir)/nasmdoc.css html/nasmdoc.css
-html/nasmlogw.png: nasmlogw.png
- $(CP_F) $(srcdir)/nasmlogw.png html/nasmlogw.png
nasmdoc.dip: $(SRCS) rdsrc.pl
$(RDSRC) dip nasmdoc.src