aboutsummaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2002-02-25 14:24:51 +0000
committerMurray Stokely <murray@FreeBSD.org>2002-02-25 14:24:51 +0000
commitbf6eeb13b43509e54cf800ca7ea4ddc55f683103 (patch)
treed05c69f0e2737447792120e697fdd8e71115e775 /share/mk
parentecbe20a9a4ab8621e1e420060a4cb2479fe5e246 (diff)
downloaddoc-bf6eeb13b43509e54cf800ca7ea4ddc55f683103.tar.gz
doc-bf6eeb13b43509e54cf800ca7ea4ddc55f683103.zip
Netscape 4.X does not support the '@import' directive in CSS
stylesheets. To get around this, append the filename specified in the 'CSS_SHEET_ADDITIONS' variable (if defined) to the end of the default CSS stylesheet. This allows us to add document-specific stylesheet rules while still supporting braindead browsers and reusing the default CSS code.
Notes
Notes: svn path=/head/; revision=12281
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/doc.docbook.mk3
-rw-r--r--share/mk/doc.project.mk1
2 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/doc.docbook.mk b/share/mk/doc.docbook.mk
index 4059cce3e6..d596259683 100644
--- a/share/mk/doc.docbook.mk
+++ b/share/mk/doc.docbook.mk
@@ -727,4 +727,7 @@ package-${_curformat}: ${PACKAGES}/${.CURDIR:T}.${LANGCODE}.${_curformat}.tgz
.if ${LOCAL_CSS_SHEET} != ${CSS_SHEET}
${LOCAL_CSS_SHEET}: ${CSS_SHEET}
${CP} -p ${.ALLSRC} ${.TARGET}
+.if defined(CSS_SHEET_ADDITIONS)
+ ${CAT} ${.CURDIR}/${CSS_SHEET_ADDITIONS} >> ${.TARGET}
+.endif
.endif
diff --git a/share/mk/doc.project.mk b/share/mk/doc.project.mk
index ccc72bb5df..74270f6d97 100644
--- a/share/mk/doc.project.mk
+++ b/share/mk/doc.project.mk
@@ -69,6 +69,7 @@ PREFIX?= ${LOCALBASE}
PRI_LANG?= en_US.ISO8859-1
CP?= /bin/cp
+CAT?= /bin/cat
ECHO_CMD?= echo
LN?= /bin/ln
MKDIR?= /bin/mkdir -p