mirror of https://github.com/tLDP/LDP
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# -- Makefile for linux IP docs; written 2002-08-09; -MAB
|
|
#
|
|
# $Id$
|
|
#
|
|
# -- using ./configure && make
|
|
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .xml
|
|
|
|
# -- a few binaries used for the production of content
|
|
#
|
|
XSLTPROC = xsltproc
|
|
XSLTPROC_FLAGS =
|
|
|
|
# -- some directories used in the production of the
|
|
# output
|
|
#
|
|
BASE = linux-ip
|
|
VERSION = $(shell cat VERSION)
|
|
BASEVER = ${BASE}-${VERSION}
|
|
SRCXML = ${BASE}.xml
|
|
XSLCHUNK = xsl/${BASE}-chunk.xsl
|
|
XSLNOCHUNK = xsl/${BASE}.xsl
|
|
prefix = /usr/local
|
|
OUTDIR = ${prefix}/share
|
|
OUTPUT = ${OUTDIR}/${BASEVER}
|
|
HTMLOUTPUT = ${OUTPUT}
|
|
|
|
.PHONY: html html-nochunk images scripts aindex
|
|
#
|
|
# -- this is the first target. It by default only makes
|
|
# the chunked HTML output (and supporting items)
|
|
#
|
|
html: aindex scripts images
|
|
XML_CATALOG_FILES=${XML_CATALOG_FILES} ${XSLTPROC} \
|
|
-stringparam base.dir ${HTMLOUTPUT}/ ${XSLCHUNK} ${SRCXML}
|
|
|
|
html-nochunk:
|
|
XML_CATALOG_FILES=${XML_CATALOG_FILES} ${XSLTPROC} \
|
|
${XSLNOCHUNK} ${SRCXML} > ${HTMLOUTPUT}/${BASE}.html
|
|
|
|
aindex:
|
|
test -d ${HTMLOUTPUT} || mkdir -p ${HTMLOUTPUT}
|
|
cp ${BASE}.css ${HTMLOUTPUT}
|
|
|
|
scripts:
|
|
cp -ra scripts/ ${HTMLOUTPUT}/
|
|
@tar --create --exclude scripts/CVS --verbose --compress \
|
|
--file ${HTMLOUTPUT}/scripts/${BASE}-scripts.tar.gz scripts/
|
|
|
|
images:
|
|
cp -ra images/ ${HTMLOUTPUT}/
|
|
|
|
distclean:
|
|
rm -f config.cache config.log config.status xsl/catalog.xml Makefile
|