Skip to content

Commit ab3e992

Browse files
committed
[css2] Now creates no subtoc if subtoc would be empty.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401188
1 parent d65bfae commit ab3e992

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

css2/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Makefile to generate the CSS2 document based on its "source files"
22
# Arnaud Le Hors - lehors@w3.org
3-
# $Id: Makefile,v 2.16 1998-03-13 23:01:02 ijacobs Exp $
3+
# $Id: Makefile,v 2.17 1998-03-15 22:37:39 bbos Exp $
44

55
# what needs to be set for every new release:
66
# Note use of full year (1998) in identifier.
@@ -223,6 +223,7 @@ LN= ln
223223
echo "<p><strong>Contents</strong>" >>$@
224224
$(MKTOC) -l 2 -r $*.html $(HEADINGDB) >>$@
225225
echo "</div>" >>$@
226+
if [ `cat $@ | wc -l` = 3 ]; then $(RM) $@; touch $@; fi
226227

227228
#%.html: %.subtoc Project.cfg
228229
%.html: %.subtoc $(SPECSRCS:.src=.srd) Project.cfg

0 commit comments

Comments
 (0)