Initial Commit
[packages] / xemacs-packages / xslt-process / Makefile
1 # Makefile for xslt-process lisp code
2
3 # This file is part of XEmacs.
4
5 # XEmacs is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2, or (at your option) any
8 # later version.
9
10 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13 # for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with XEmacs; see the file COPYING.  If not, write to
17 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 # Boston, MA 02111-1307, USA.
19
20 VERSION = 1.14
21 AUTHOR_VERSION = 1.2.1
22 MAINTAINER = Ovidiu Predescu <ovidiu@xemacs.org>
23 PACKAGE = xslt-process
24 PKG_TYPE = regular
25 REQUIRES = jde cc-mode semantic cedet-common debug speedbar edit-utils eterm \
26         mail-lib xemacs-base elib eieio sh-script fsf-compat xemacs-devel os-utils
27 CATEGORY = standard
28
29 JAR = xslt.jar
30
31 ELCS = lisp/xslt-process.elc
32
33 #ELCS_1 = t
34 #ELCS_1_FILES = java/xslt.jar
35 #ELCS_1_DEST = xslt-process/java/
36
37 EXTRA_SOURCES = INSTALL README
38
39 DATA_1_FILES = $(wildcard java/xslt/*.java) $(wildcard java/xslt/*.class)
40 DATA_1_DEST = $(PACKAGE)/java/xslt
41
42 DATA_2_FILES = java/$(JAR)
43 DATA_2_DEST = $(PACKAGE)/java
44
45 AUTOLOAD_PATH = lisp
46
47 EXPLICIT_DOCS = doc/$(PACKAGE).texi
48
49 EXTRA_DOC_FILES = doc/$(PACKAGE).gif
50
51 EXTRA_DEPENDENCIES = INSTALL README
52
53 include ../../XEmacs.rules
54
55 jar: java/$(JAR)
56
57 java/xslt.jar: $(wildcard java/xslt/*.java)
58         (cd java; \
59          javac -classpath `pwd`/java:$$CLASSPATH `find . -name '*.java'`; \
60          jar cf $(JAR) `find . -name '*.class'`)
61
62 INSTALL README: doc/$(PACKAGE).texi
63         info --output=README --subnodes --file doc/$(PACKAGE).info
64         sed -e '/^File:.*/d' -e '/[     ]*,Top[         ]*/d' < README > README.tmp
65         info --file=doc/$(PACKAGE).info --node=Installation --node='Setting up PSGML with XSLT-process' --output INSTALL
66         mv README.tmp README
67
68 homepage: html
69         sed -e 's/<BODY[^>]*>/<BODY>/g' \
70           -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
71         mv $(HTML_DEP).tmp index.html