[svn] r2222@freebird: fabien | 2006-01-24 02:28:37 -0500
Add validate target. No depends on install however, since
xmllint doesn't handle xml:tag and xmlns:ns correctly.
--- a/Makefile Mon Jan 23 13:07:49 2006 -0500
+++ b/Makefile Tue Jan 24 13:23:44 2006 -0500
@@ -1,6 +1,6 @@
#!/usr/bin/make
-MAKE_RCS_VERSION="$Revision: 1946 $ $Name$"
+MAKE_RCS_VERSION="$Revision: 1957 $ $Name$"
TOP?=$(shell pwd)
RULESDIR?=$(TOP)
@@ -104,7 +104,16 @@
paper ; \
done
-install: install-aides $(PACKAGE).tar.bz2 $(HTML_FILES)
+validate: validate-rules
+
+validate-rules:
+ for short in 0 1 ; do \
+ make TOP=$(TOP) RULESDIR=$(RULESDIR) \
+ INSTALL_DIR=$(INSTALL_DIR) \
+ SHORT_VERSION=$$short valid ; \
+ done
+
+install: validate install-aides $(PACKAGE).tar.bz2 $(HTML_FILES)
for short in 0 1 ; do \
make TOP=$(TOP) RULESDIR=$(RULESDIR) \
INSTALL_DIR=$(INSTALL_DIR) \
@@ -136,8 +145,7 @@
done
-.PHONY: all rules install install-rules purge purge-rules
-
+.PHONY: all rules install install-rules purge purge-rules validate validate-rules
include $(RULESDIR)/Makefile.rules