[docs] xmldocs - docelic modified Makefile
docs at icdevgroup.org
docs at icdevgroup.org
Sat Nov 6 12:37:02 EST 2004
User: docelic
Date: 2004-11-06 17:37:01 GMT
Modified: . Makefile
Log:
- Replace unconditional "tail +2" on olinkdb targets with more
sensible perl oneliner
Revision Changes Path
1.37 +14 -8 xmldocs/Makefile
rev 1.37, prev_rev 1.36
Index: Makefile
===================================================================
RCS file: /var/cvs/xmldocs/Makefile,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- Makefile 6 Nov 2004 01:06:46 -0000 1.36
+++ Makefile 6 Nov 2004 17:37:01 -0000 1.37
@@ -100,32 +100,38 @@
--stringparam collect.xref.targets only \
--stringparam targets.filename $@ \
docbook/html-nochunks.xsl $<
- # tail +2 $@ > $T/tail
- # mv $T/tail $@
+ perl -ni -e'print if $$. > 1 or $$.==1 and !/^<!DOCTYPE/' $@
olinkdbs-c olinks-c: $(foreach f,$(ALL_DOCS),$T/$f-c.db)
$T/%-c.db: %.xml $T
$(PSR) $(PSR_FLAGS) \
--stringparam collect.xref.targets only \
--stringparam targets.filename $@ \
docbook/html-chunks.xsl $<
- # tail +2 $@ > $T/tail
- # mv $T/tail $@
+ perl -ni -e'print if $$. > 1 or $$.==1 and !/^<!DOCTYPE/' $@
#############################################################
-# Standard targets
+# Standard targets || two-pass processing method
$O/%.html: %.xml docbook/autodefs.ent skel
echo "C $@"
$(PSR) $(PSR_FLAGS) \
--stringparam current.docid $* \
--stringparam target.database.document ../docbook/olinkdb-nc.xml \
- -o $@ docbook/html-nochunks.xsl $<
+ -o $T/$*-nc.profiled docbook/profile.xsl $<
+ $(PSR) $(PSR_FLAGS) \
+ --stringparam current.docid $* \
+ --stringparam target.database.document ../docbook/olinkdb-nc.xml \
+ -o $@ docbook/html-nochunks.xsl $T/$*-nc.profiled
$O/%: %.xml skel
echo "C $@/"
$(PSR) $(PSR_FLAGS) \
--stringparam current.docid $* \
- --stringparam target.database.document ../docbook/olinkdb-c.xml \
- -o $@/ docbook/html-chunks.xsl $<
+ --stringparam target.database.document ../docbook/olinkdb-nc.xml \
+ -o $T/$*-c.profiled docbook/profile.xsl $<
+ $(PSR) $(PSR_FLAGS) \
+ --stringparam current.docid $* \
+ --stringparam target.database.document ../docbook/olinkdb-nc.xml \
+ -o $@/ docbook/html-chunks.xsl $T/$*-c.profiled
#############################################################
More information about the docs
mailing list