--- a/Makefile Thu Jan 26 16:51:38 2006 -0500
+++ b/Makefile Fri Feb 03 16:27:48 2006 -0500
@@ -14,16 +14,19 @@
OUTPUT=$(foreach target,$(basename $(SRCS)),$(call output,$(target))) \
$(PDF_OUTPUT)
UPLOAD=$(OUTPUT) cda-perso.sxw cda-perso-alt.sxw presentation.sxi index.fr.html blason.png
-xml_validate=xmllint --xinclude --postvalid --noout $(1)
-html_validate=true
+xml_validate=xmllint --xinclude --noout $(1)
+html_validate=$(call xml_validate,$(1))
all: $(basename $(SRCS)) $(PDF_OUTPUT)
-validate: cda-validate
-# need to validate html file also.
+# Should I need to validate other file? Can I?
+validate: $(addsuffix -validate, $(SRCS) index.fr.html)
-cda-validate:
- $(call xml_validate,cda.xml)
+%.xml-validate: %.xml
+ $(call xml_validate,$<)
+
+%.html-validate: %.html
+ $(call html_validate,$<)
cda: $(call targets,cda)