Commits

Anonymous committed 6aef1dc

package Makefile overhaul -- remove explicit targets, explicit specification of generated .el files, etc; all is done using directives [i.e. variables], as documented in XEmacs.rules

  • Participants
  • Parent commits 312b345

Comments (0)

Files changed (1)

-# Makefile for sh-script lisp code
+# Makefile for xslt-process lisp code
 
 # This file is part of XEmacs.
 
 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-.PHONY: doc
-
 VERSION = 1.11
 AUTHOR_VERSION = 1.2.1
 MAINTAINER = Ovidiu Predescu <ovidiu@xemacs.org>
 	mail-lib xemacs-base elib eieio sh-script fsf-compat xemacs-devel
 CATEGORY = standard
 
-MAKE ?= make
-
 JAR = xslt.jar
 
 ELCS = lisp/xslt-process.elc
 #ELCS_1_FILES = java/xslt.jar
 #ELCS_1_DEST = xslt-process/java/
 
+EXTRA_SOURCES = INSTALL README
+
 DATA_1_FILES = $(wildcard java/xslt/*.java) $(wildcard java/xslt/*.class)
 DATA_1_DEST = $(PACKAGE)/java/xslt
 
 DATA_2_FILES = java/$(JAR)
 DATA_2_DEST = $(PACKAGE)/java
 
-DATA_3_FILES = doc/$(PACKAGE).info doc/$(PACKAGE).texi doc/$(PACKAGE).gif
-ifneq ($(TEXI2DVI),)
-ifneq ($(DVIPS),)
-DATA_3_FILES += doc/$(PACKAGE).ps
-endif
-endif
-ifneq ($(TEXI2PDF),)
-DATA_3_FILES += doc/$(PACKAGE).pdf
-endif
-DATA_3_DEST = $(PACKAGE)/doc
-
 AUTOLOAD_PATH = lisp
 
-INFO_FILES = doc/$(PACKAGE).info
-TEXI_FILES = doc/$(PACKAGE).texi doc/$(PACKAGE).gif
+EXPLICIT_DOCS = doc/$(PACKAGE).texi
+
+EXTRA_DOC_FILES = doc/$(PACKAGE).gif
+
+EXTRA_DEPENDENCIES = INSTALL README
 
 include ../../XEmacs.rules
 
-GENERATED += $(AUTOLOAD_PATH)/custom-load.elc
-
-compile:: $(AUTOLOAD_PATH)/auto-autoloads.elc $(ELCS) \
-	$(AUTOLOAD_PATH)/custom-load.elc doc
-
-html:
-	$(MAKE) -C doc PACKAGE=$(PACKAGE) html
-
-binkit: binkit-common
-
 jar: java/$(JAR)
 
 java/xslt.jar: $(wildcard java/xslt/*.java)
 	 javac -classpath `pwd`/java:$$CLASSPATH `find . -name '*.java'`; \
 	 jar cf $(JAR) `find . -name '*.class'`)
 
-doc:
-	(cd doc; $(MAKE) compile)
+INSTALL README: doc/$(PACKAGE).texi
+	info --output=README --subnodes --file doc/$(PACKAGE).info
+	sed -e '/^File:.*/d' -e '/[ 	]*,Top[ 	]*/d' < README > README.tmp
+	info --file=doc/$(PACKAGE).info --node=Installation --node='Setting up PSGML with XSLT-process' --output INSTALL
+	mv README.tmp README
 
-clean::
-	(cd doc; $(MAKE) clean)
-
-distclean::
-	(cd doc; $(MAKE) distclean)
+homepage: html
+	sed -e 's/<BODY[^>]*>/<BODY>/g' \
+	  -e 's^</BODY>^<p><a HREF=../index.html><img src=../../images/back.gif border=0%> Other (X)Emacs hacks</a><br><a href=../../index.html><img src=../../images/home.gif border=0%> Home</a></body>^g' -e 's/xslt-process.html/index.html/g' <$(HTML_DEP) >$(HTML_DEP).tmp
+	mv $(HTML_DEP).tmp index.html