source: trunk/j/Makefile.in @ 2

Last change on this file since 2 was 2, checked in by piso, 18 years ago

Initial checkin.

File size: 8.7 KB
Line 
1# Makefile.in
2
3# Copyright (C) 1998-2000 Peter Graves
4# $Id: Makefile.in,v 1.1.1.1 2002-09-24 16:06:34 piso Exp $
5
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License
8# as published by the Free Software Foundation; either version 2
9# of the License, or (at your option) any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20version=@version@
21
22prefix=@prefix@
23exec_prefix=@exec_prefix@
24bindir=@bindir@
25datadir=@datadir@
26
27INSTALL=@INSTALL@
28INSTALL_DATA=@INSTALL_DATA@
29INSTALL_PROGRAM=@INSTALL_PROGRAM@
30INSTALL_SCRIPT=@INSTALL_SCRIPT@
31
32JAR=@JAR@
33
34JPTY=@JPTY@
35
36distdir = j-$(version)
37
38all: j.jar $(JPTY)
39
40Makefile: Makefile.in config.status
41  $(SHELL) ./config.status
42
43config.status: configure
44  $(SHELL) ./config.status --recheck
45
46classes:
47  set -e; \
48  for i in src/bsh src/bsh/classpath src/bsh/commands src/bsh/reflect src/gnu/regexp \
49    src/org/xml/sax src/org/xml/sax/helpers src/org/xml/sax/ext \
50    src/org/armedbear/j/aelfred src/org/armedbear/j/mail src/org/armedbear/j src; \
51  do \
52    ( cd $$i && $(MAKE) ); \
53  done
54  cd src/org/armedbear/j && date > build && hostname >> build
55
56jpty:
57  cd src/jpty && $(MAKE)
58
59jpty.exe:
60  cd src/jpty && $(MAKE)
61
62j.jar: classes.stamp
63  cd src && $(JAR) cmf manifest ../j.jar Editor.class org/armedbear/j/*.class \
64    org/armedbear/j/*.bsh \
65    org/armedbear/j/version org/armedbear/j/build \
66    org/armedbear/j/images/*.gif \
67    bsh/*.class bsh/classpath/*.class bsh/commands/*.class bsh/commands/*.bsh bsh/reflect/*.class \
68    gnu/regexp/*.class gnu/regexp/MessagesBundle.properties org/xml/sax/*.class \
69    org/xml/sax/helpers/*.class org/xml/sax/ext/*.class org/armedbear/j/aelfred/*.class \
70    org/armedbear/j/mail/*.class \
71    org/armedbear/j/*.keywords org/armedbear/j/mail/*.keywords
72
73classes.stamp: classes
74  test -f classes.stamp || touch classes.stamp
75
76distdir:
77  -rm -rf $(distdir)
78  mkdir $(distdir)
79  cp -p j.in j.bat.in configure configure.in Makefile.in install-sh mkinstalldirs COPYING $(distdir)
80  cp -p build.properties build.xml $(distdir)
81  mkdir $(distdir)/src
82  cp -p src/Makefile.in src/manifest src/*.java $(distdir)/src
83  mkdir $(distdir)/src/jpty
84  cp -p src/jpty/Makefile.in src/jpty/jpty.c $(distdir)/src/jpty
85  cp -p src/jpty/build.xml $(distdir)/src/jpty
86  mkdir $(distdir)/src/org
87  mkdir $(distdir)/src/org/armedbear
88  mkdir $(distdir)/src/org/armedbear/j
89  -cp -p src/org/armedbear/j/Makefile.in src/org/armedbear/j/version.in src/org/armedbear/j/*.java src/org/armedbear/j/*.bsh $(distdir)/src/org/armedbear/j
90  mkdir $(distdir)/src/org/armedbear/j/mail
91  -cp -p src/org/armedbear/j/mail/Makefile.in src/org/armedbear/j/mail/*.java $(distdir)/src/org/armedbear/j/mail
92  mkdir $(distdir)/src/org/armedbear/j/aelfred
93  -cp -p src/org/armedbear/j/aelfred/Makefile.in src/org/armedbear/j/aelfred/*.java $(distdir)/src/org/armedbear/j/aelfred
94  mkdir $(distdir)/src/org/armedbear/j/images
95  -cp -p src/org/armedbear/j/images/*.gif $(distdir)/src/org/armedbear/j/images
96  mkdir $(distdir)/src/bsh
97  -cp -p src/bsh/Makefile.in src/bsh/*.java  src/bsh/bsh.jj src/bsh/bsh.jjt $(distdir)/src/bsh
98  mkdir $(distdir)/src/bsh/classpath
99  -cp -p src/bsh/classpath/Makefile.in src/bsh/classpath/*.java  $(distdir)/src/bsh/classpath
100  mkdir $(distdir)/src/bsh/commands
101  -cp -p src/bsh/commands/Makefile.in src/bsh/commands/*.java src/bsh/commands/*.bsh $(distdir)/src/bsh/commands
102  mkdir $(distdir)/src/bsh/reflect
103  -cp -p src/bsh/reflect/Makefile.in src/bsh/reflect/*.java  $(distdir)/src/bsh/reflect
104  mkdir $(distdir)/src/gnu
105  mkdir $(distdir)/src/gnu/regexp
106  -cp -p src/gnu/regexp/Makefile.in src/gnu/regexp/*.java  src/gnu/regexp/MessagesBundle.properties $(distdir)/src/gnu/regexp
107  mkdir $(distdir)/src/org/xml
108  mkdir $(distdir)/src/org/xml/sax
109  -cp -p src/org/xml/sax/Makefile.in src/org/xml/sax/*.java $(distdir)/src/org/xml/sax
110  mkdir $(distdir)/src/org/xml/sax/helpers
111  -cp -p src/org/xml/sax/helpers/Makefile.in src/org/xml/sax/helpers/*.java $(distdir)/src/org/xml/sax/helpers
112  mkdir $(distdir)/src/org/xml/sax/ext
113  -cp -p src/org/xml/sax/ext/Makefile.in src/org/xml/sax/ext/*.java $(distdir)/src/org/xml/sax/ext
114  mkdir $(distdir)/doc
115  cp -p doc/*.html $(distdir)/doc
116  cp -p doc/*.css $(distdir)/doc
117  mkdir $(distdir)/themes
118  -cp -p themes/* $(distdir)/themes
119
120dist: distdir
121  -rm -f $(distdir).zip
122  -rm -f $(distdir).tar.gz
123  zip -q -r $(distdir).zip $(distdir)
124  -rm -rf temp
125  mkdir temp
126  cd temp && unzip -q ../$(distdir).zip
127  diff --brief -N -r $(distdir) temp/$(distdir)
128  rm -rf temp
129  tar czf $(distdir).tar.gz $(distdir)
130  mkdir temp
131  cd temp && tar xfz ../$(distdir).tar.gz
132  diff --brief -N -r $(distdir) temp/$(distdir)
133  rm -rf temp
134  rm -rf $(distdir)
135
136bindistdir: j.jar
137  -rm -rf $(distdir)
138  mkdir $(distdir)
139  cp -p j.jar COPYING $(distdir)
140  mkdir $(distdir)/doc
141  cp -p doc/*.html $(distdir)/doc
142  cp -p doc/*.css $(distdir)/doc
143  mkdir $(distdir)/themes
144  -cp -p themes/* $(distdir)/themes
145
146bindist: bindistdir
147  -rm -f $(distdir)-binary.tar.gz
148  -rm -f $(distdir)-binary.zip
149  zip -q -r $(distdir)-binary.zip $(distdir)
150  -rm -rf temp
151  mkdir temp
152  cd temp && unzip -q ../$(distdir)-binary.zip
153  diff --brief -N -r $(distdir) temp/$(distdir)
154  rm -rf temp
155  tar czf $(distdir)-binary.tar.gz $(distdir)
156  mkdir temp
157  cd temp && tar xfz ../$(distdir)-binary.tar.gz
158  diff --brief -N -r $(distdir) temp/$(distdir)
159  rm -rf temp
160  -rm -rf $(distdir)
161
162install:
163  ./mkinstalldirs $(datadir)/j $(datadir)/j/themes $(datadir)/doc/j $(bindir)
164  $(INSTALL_DATA) j.jar $(datadir)/j
165  $(INSTALL_SCRIPT) j $(bindir)
166  if [ -f src/jpty/$(JPTY) ]; then $(INSTALL_PROGRAM) src/jpty/$(JPTY) $(bindir); fi
167  if [ -f j.bat ]; then $(INSTALL_SCRIPT) j.bat $(bindir); fi
168  for i in themes/* ; do test -f $$i && $(INSTALL_DATA) $$i $(datadir)/j/themes ; done
169  $(INSTALL_DATA) doc/*.html $(datadir)/doc/j
170  $(INSTALL_DATA) doc/*.css $(datadir)/doc/j
171
172uninstall:
173  -rm -f $(datadir)/j/j.jar
174  -rm -f $(bindir)/j
175  -rm -f $(bindir)/jpty.exe
176  -rm -f $(bindir)/jpty
177  -rm -f $(bindir)/j.bat
178  -rm -f $(datadir)/j/themes/*
179  -rmdir $(datadir)/j/themes
180  -rm -f $(datadir)/doc/j/*.html
181  -rm -f $(datadir)/doc/j/*.css
182  -rmdir $(datadir)/doc/j
183  -rmdir $(datadir)/j
184
185clean:
186  -rm -f *.zip
187  -rm -f *.tar.gz
188  -rm -f *.jar
189  -rm -f *.class
190  -rm -f src/*.class
191  -rm -f src/jpty/jpty src/jpty/jpty.exe
192  -rm -f src/org/armedbear/j/*.class
193  -rm -f src/org/armedbear/j/build
194  -rm -f src/org/armedbear/j/aelfred/*.class
195  -rm -f src/org/armedbear/j/mail/*.class
196  -rm -f src/bsh/*.class
197  -rm -f src/bsh/classpath/*.class
198  -rm -f src/bsh/commands/*.class
199  -rm -f src/bsh/reflect/*.class
200  -rm -f src/gnu/regexp/*.class
201  -rm -f src/org/xml/sax/*.class
202  -rm -f src/org/xml/sax/helpers/*.class
203  -rm -f src/org/xml/sax/ext/*.class
204  -rm -rf $(distdir)
205  -rm -f classes.stamp
206
207distclean: clean
208  -rm -f config.status config.log config.cache Makefile j j.bat
209  -rm -f src/Makefile
210  -rm -f src/jpty/Makefile
211  -rm -f src/bsh/Makefile
212  -rm -f src/bsh/classpath/Makefile
213  -rm -f src/bsh/commands/Makefile
214  -rm -f src/bsh/reflect/Makefile
215  -rm -f src/gnu/regexp/Makefile
216  -rm -f src/org/xml/sax/Makefile
217  -rm -f src/org/xml/sax/helpers/Makefile
218  -rm -f src/org/xml/sax/ext/Makefile
219  -rm -f src/org/armedbear/j/Makefile
220  -rm -f src/org/armedbear/j/version
221  -rm -f src/org/armedbear/j/aelfred/Makefile
222  -rm -f src/org/armedbear/j/mail/Makefile
223
224j.zip:
225  -rm -f j.zip
226  zip -q j.zip j.in j.bat.in configure configure.in Makefile.in install-sh mkinstalldirs COPYING \
227    src/Makefile.in src/manifest src/*.java \
228    src/jpty/Makefile.in src/jpty/jpty.c \
229    src/org/armedbear/j/Makefile.in src/org/armedbear/j/version.in src/org/armedbear/j/*.java \
230    src/org/armedbear/j/mail/Makefile.in src/org/armedbear/j/mail/*.java \
231    src/org/armedbear/j/*.bsh \
232    src/org/armedbear/j/images/*.gif \
233    src/bsh/Makefile.in src/bsh/*.j* \
234    src/bsh/classpath/Makefile.in src/bsh/classpath/*.java \
235    src/bsh/commands/Makefile.in src/bsh/commands/*.java src/bsh/commands/*.bsh \
236    src/bsh/reflect/Makefile.in src/bsh/reflect/*.java \
237    src/gnu/regexp/Makefile.in src/gnu/regexp/*.java src/gnu/regexp/MessagesBundle.properties \
238    src/org/xml/sax/Makefile.in src/org/xml/sax/*.java \
239    src/org/xml/sax/helpers/Makefile.in src/org/xml/sax/helpers/*.java \
240    src/org/xml/sax/ext/Makefile.in src/org/xml/sax/ext/*.java \
241    src/org/armedbear/j/aelfred/Makefile.in src/org/armedbear/j/aelfred/*.java \
242    doc/*.html doc/*.css \
243    themes/*
244  unzip -t -qq j.zip
245
246j-jar.zip: j.jar
247  -rm -f j-jar.zip
248  zip -q j-jar.zip j.jar
249  unzip -t -qq j-jar.zip
250
251snapshot: j.zip j-jar.zip
Note: See TracBrowser for help on using the repository browser.