Makefile
branchecjdr
changeset 43 9433f5f4ee46
parent 42 58cf3c7d4b1b
child 48 125e031074f3
--- a/Makefile	Fri Feb 03 16:27:40 2006 -0500
+++ b/Makefile	Fri Feb 03 16:27:52 2006 -0500
@@ -30,11 +30,11 @@
 
 validate-rpgtheory: $(addsuffix -validate, $(EN_ARTICLES))
 
-$(addsuffix -validate,$(TARGETS)):
-	$(call xml_validate,$(subst -validate,.xml,$@))
+%-validate: %.xml
+	$(call xml_validate,$<)
 
-$(addsuffix -validate,$(HTML_FILES)):
-	$(call html_validate,$(subst -validate,,$@))
+%.html-validate: %.html
+	$(call html_validate,$<)
 
 validate: $(addsuffix -validate,$(TARGETS) $(HTML_FILES))