Commits

Anonymous committed 0738198

add support for supporting ELCS

  • Participants
  • Parent commits 7a5c652

Comments (0)

Files changed (1)

 # validate: validation of all .html files in $(WEBDIR) using XEmacs/PSGML
 # all: creation and validation
 #
+
 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
+
+# APA: Compile any lisp file for performance (a bit simple-minded, maybe).
+%.elc: %.el
+	$(XEMACS) $(FLAGS) -f batch-byte-compile $<
 
 # APA: Default target (first to occur in file):
-htdocs: index.content
+htdocs: index.content $(ELCS)
 	perl ./genpage/bin/genpage -p $(GENPAGE_CONF) -o $(WEBDIR)
 
 # See batch-psgml-validate.el for details, in particular ...
 # (defun batch-psgml-validate-file (file &optional insert-result indent)
 # (defun batch-psgml-validate-buffer (&optional insert-result indent)
 validate:
-	$(XEMACS) $(FLAGS) -l ./batch-psgml-validate.el -f batch-psgml-validate $(WEBDIR)
+	$(XEMACS) $(FLAGS) -l ./batch-psgml-validate.elc -f batch-psgml-validate $(WEBDIR)
 
 all: htdocs validate
 
 # APA: We MUST NOT do this because output files are not kept separate:
 # clean:
 # 	rm -rf $(WEBDIR)
-