[AC web] Fix up Makefile

Stephen J. Turnbull stephen at xemacs.org
Sun Nov 29 10:29:51 EST 2009


APPROVE COMMIT web

Index: ChangeLog
===================================================================
RCS file: /cvsroot/xemacs/XEmacs/xemacsweb/ChangeLog,v
retrieving revision 1.287
diff -u -u -r1.287 ChangeLog
--- ChangeLog	20 May 2009 06:25:35 -0000	1.287
+++ ChangeLog	29 Nov 2009 14:40:10 -0000
@@ -0,0 +1,4 @@
+2009-11-29  Stephen J. Turnbull  <stephen at xemacs.org>
+
+	* Makefile (real-validate): Use xargs, we have too many html files.
+

Index: Makefile
===================================================================
RCS file: /cvsroot/xemacs/XEmacs/xemacsweb/Makefile,v
retrieving revision 1.59
diff -u -u -r1.59 Makefile
--- Makefile	25 Nov 2009 23:06:22 -0000	1.59
+++ Makefile	29 Nov 2009 14:40:10 -0000
@@ -141,8 +141,12 @@
 	make real-validate SUBMAKE=validate
 	touch $(STAMPS)/validate
 ifeq ($(SUBMAKE),validate)
+# We'd like to use VALIDATE_HTML_FILES or $<, but we've got too many of them.
+# (Limit on line length in shell.)  So we run the find again here with xargs.
 real-validate: $(VALIDATE_HTML_FILES)
-	$(XEMACS) $(FLAGS) -l ./batch-psgml-validate.elc -f batch-psgml-validate $?
+	$(FIND) . $(PRUNES) -o -name "*.html" -print \
+	| xargs $(XEMACS) $(FLAGS) -l ./batch-psgml-validate.elc \
+				   -f batch-psgml-validate
 endif
 
 # PB: target for rebuilding the namazu index



More information about the XEmacs-Patches mailing list