1. xemacs
  2. xemacsweb

Commits

adriana  committed 8e3cd24

[xemacsweb PATCH] Makfile to generate and validate modified files only <ulmyekm45.fsf@ecf.teradyne.com>

  • Participants
  • Parent commits 6f3f544
  • Branches default

Comments (0)

Files changed (2)

File ChangeLog

View file
  • Ignore whitespace
+2000-08-03  Adrian Aichner  <aichner@ecf.teradyne.com>
+
+	* Makefile (.SUFFIXES: Handle only required suffixes.
+	* Makefile (WEBDIR): Removed since it must always be ".".
+	* Makefile (CONTENT_FILES): All content files to check against
+	genpage-time-stamp.  genpage is only run if an content file is
+	newer.
+	* Makefile (validate):
+	* Makefile (genpage-time-stamp): Captures last genpage run time to
+	check CONTENT_FILES against.
+
 2000-08-03  Adrian Aichner  <aichner@ecf.teradyne.com>
 
 	* template.html: Conversion of links using 'cd xemacsweb; perl

File Makefile

View file
  • Ignore whitespace
 # all: creation and validation
 #
 
+.SUFFIXES:						# Delete the default suffixes
+.SUFFIXES: .content .html .el .elc # Define our suffix list
+
 XEMACS=xemacs
 # APA: This is what I use on my Windows NT machine:
 # XEMACS="c:/XEmacs/XEmacs-21.1.11/i386-pc-win32/xemacs.exe"
 FLAGS=-batch -q -no-site-file
 GENPAGE_CONF="genpage.conf"
-WEBDIR="."
 ELCS=batch-psgml-validate.elc
+CONTENT_FILES=$(shell find . -name "*.content" -print)
 HTML_FILES=$(shell find . -name "*.html" -print)
 
+# APA: Now that we validate only files younger than
+# validate-time-stamp we can afford to make this the default target.
+all: $(ELCS) htdocs validate
+
 # APA: Compile any lisp file for performance (a bit simple-minded, maybe).
 %.elc: %.el
 	$(XEMACS) $(FLAGS) -f batch-byte-compile $<
 
-# APA: Now that we validate only files younger than
-# validate-time-stamp we can afford to make this the default target.
-all: htdocs validate
-
 # APA: Default target (first to occur in file):
-htdocs: index.content $(ELCS)
-	perl ./genpage/bin/genpage -p $(GENPAGE_CONF) -o $(WEBDIR)
+htdocs: genpage-time-stamp
 
 # See batch-psgml-validate.el for details, in particular ...
 # (defun batch-psgml-validate (&optional file-or-dir)
 # (defun batch-psgml-validate-buffer (&optional insert-result indent)
 validate: validate-time-stamp
 
+# APA: When contentdir and outputdir are the same then, and only then,
+# genpage depends only on content files.  Copying of all other files
+# (from contentdir to outputdir) is not necessary in this case.
+genpage-time-stamp: $(CONTENT_FILES)
+	perl ./genpage/bin/genpage -p $(GENPAGE_CONF) -o "."
+	touch genpage-time-stamp
+
 # APA: Validate only files younger than time-stamp file created by
 # previous validation
 validate-time-stamp: $(HTML_FILES)