[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debian JP master SVN www commits (rev.686)
=======================================================
Repository: /org/svn.debian.or.jp/repos
Revision: 686
Commiter: nori
Date: 2008-06-11 16:59:03 +0900 (水, 11 6月 2008)
=======================================================
Log:
Rewrite Make.sgml which was so buggy and did not work.
* Make.sgml: Do not use a target variable HTMLFILES for HTML outputs,
which is set using wildcards and hence gets empty when those outputs
does not exist, and use %.html/stamp rule instead of that.
=======================================================
Changed:
U www/trunk/Make.sgml
Modified: www/trunk/Make.sgml
===================================================================
--- www/trunk/Make.sgml 2008-06-11 06:56:14 UTC (rev 685)
+++ www/trunk/Make.sgml 2008-06-11 07:59:03 UTC (rev 686)
@@ -2,12 +2,13 @@
SGMLFILES := $(wildcard *.sgml)
HTMLDIR := $(SGMLFILES:.sgml=.html)
-HTMLFILES := $(HTMLDIR)/*.html
+HTMLSTAMPS := $(SGMLFILES:.sgml=.html/stamp)
-$(HTMLFILES): $(SGMLFILES)
- @for i in $(SGMLFILES); do \
- debiandoc2html $$i; \
- done
+all: $(HTMLSTAMPS)
+%.html/stamp: %.sgml
+ debiandoc2html $<
+ touch $@
+
clean:
rm -rf $(HTMLDIR) *.sasp*