1. xemacs
  2. xemacsweb

Source

xemacsweb / Makefile

adriana 61e9e52 
adriana e5371d0 
adriana 41e5984 

adriana 6f0c3cf 






adriana 41e5984 
adriana 1b05876 
adriana 41e5984 
adriana e5371d0 
adriana 0738198 
adriana e1eaa9a 
adriana 8e3cd24 

adriana e1eaa9a 

yaseppochi 99dcd0c 
adriana e1eaa9a 


adriana 40e33b3 

adriana 124861e 
adriana 03b1b09 
adriana 6f0c3cf 

adriana e1eaa9a 
adriana 3871022 


adriana e1eaa9a 
adriana 0738198 
adriana 6f0c3cf 
adriana e1eaa9a 

adriana 6f0c3cf 



adriana 0738198 


adriana 00f8a58 
adriana 41e5984 
adriana 604c739 
adriana 00f8a58 
adriana 604c739 
adriana 00f8a58 
adriana 604c739 





adriana 61e9e52 
adriana 604c739 
adriana 61e9e52 
adriana 6f0c3cf 
adriana 1b05876 
adriana 8e3cd24 


adriana 3871022 
oishi 884e699 
adriana 8e3cd24 
adriana 604c739 
adriana 8e3cd24 
adriana e9c8d24 

adriana 1b05876 



adriana e9c8d24 


adriana 61e9e52 



adriana e1eaa9a 
adriana 61e9e52 
adriana 604c739 
adriana 61e9e52 

# -*-Makefile-*- Begin of xemacsweb Makefile
#
# Adrian Aichner (APA), aichner@ecf.teradyne.com, Teradyne GmbH, 2000-07-29.
#
# xemacsweb makefile for UNIX and Windows NT,
# requiring Gnu make, available on Windows NT via Cygwin
#
# Please adjust definitions of CONTENT_FILES and HTML_FILES for other
# versions of make.
#
# Supported targets:
# htdocs (default): creation of .html from .content files
# validate: validation of all .html files using XEmacs/PSGML
# all: creation and validation
#

.SUFFIXES:			# Delete the default suffixes
.SUFFIXES: .content .html .el .elc # Define our suffix list

# APA: This is what I use on my Windows 2000 machine:
# XEMACS="//c/Program Files/XEmacs/XEmacs-21.1.13/i386-pc-win32/xemacs.exe"
XEMACS=xemacs
# APA: Windows has its own, inadequate find, use Cygwin instead!
# FIND="//c/cygwin/bin/find.exe"
FIND=find
# FLAGS=-batch -q -no-site-file
FLAGS=-batch -vanilla
GENPAGE_CONF="genpage.conf"
ELCS=batch-psgml-validate.elc release-mail-to-html.elc

# APA: Use these definitions for GNU make
CONTENT_FILES=$(shell $(FIND) . -name "*.content" -print)
# APA: We may need GENERATED_HTML_FILES later.  This syntax should
# work with GNU- and Sun-make.
# GENERATED_HTML_FILES=$(CONTENT_FILES:.content=.html)
HTML_FILES=$(shell $(FIND) . -name "*.html" -print)

# APA: Use these definitions for SUN make
# CONTENT_FILES:sh=$(FIND) . -name "*.content" -print
# HTML_FILES:sh=$(FIND) . -name "*.html" -print

# Please add alternative definitions for CONTENT_FILES and HTML_FILES
# if neither of the above work on your system.

# 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: $(ELCS) genpage-time-stamp htdocs-time-stamp

validate: htdocs validate-time-stamp

# APA: Build the genpage documentation.  Maintain a timestamp to avoid
# needless re-generation of genpage release documentation.
# APA: The genpage/content/index.content is not the only dependency,
# but any improvements should go into the genpage/Makefile itself and
# be integrated with a genpage release.
genpage-time-stamp: genpage/content/index.content
	cd genpage;	$(MAKE) gp
	touch genpage-time-stamp

all: validate

# 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.
# See $(GENPAGE_CONF).
htdocs-time-stamp: $(CONTENT_FILES) template.html template-de.html template-ja.html
	perl ./genpage/bin/genpage -p $(GENPAGE_CONF) -o "."
	touch htdocs-time-stamp

# APA: Validate only files younger than time-stamp file created by
# previous validation
# See batch-psgml-validate.el for details, in particular ...
# (defun batch-psgml-validate (&optional file-or-dir)
# (defun batch-psgml-validate-file (file &optional insert-result indent)
# (defun batch-psgml-validate-buffer (&optional insert-result indent)
validate-time-stamp: $(HTML_FILES)
	$(XEMACS) $(FLAGS) -l ./batch-psgml-validate.elc -f batch-psgml-validate $?
	touch validate-time-stamp

# APA: Remove all .html files (and backups) generated from .content
# files.  Need to remove timestamp files as well!
clean:
	$(FIND) . \( -name "*.content" -o -name "*~" \) -print | perl -ne "{ chomp; s/\.content/.html/; unlink; }"
	rm genpage-time-stamp
	rm htdocs-time-stamp
	rm validate-time-stamp

# End of xemacsweb Makefile