source: trunk/j/Makefile.in @ 2139

Last change on this file since 2139 was 2139, checked in by piso, 20 years ago

Java 1.4, SAX2.

File size: 9.0 KB
Line 
1# Makefile.in
2
3# Copyright (C) 1998-2000 Peter Graves
4# $Id: Makefile.in,v 1.6 2003-06-04 01:10:42 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/armedbear/j/mail \
50    src/org/armedbear/j/jdb \
51    src/org/armedbear/j \
52    src/org/armedbear/lisp src; \
53  do \
54    ( cd $$i && $(MAKE) ); \
55  done
56  cd src/org/armedbear/j && date > build && hostname >> build
57
58jpty:
59  cd src/jpty && $(MAKE)
60
61jpty.exe:
62  cd src/jpty && $(MAKE)
63
64j.jar: classes.stamp
65  cd src && $(JAR) cmf manifest ../j.jar Main.class org/armedbear/j/*.class \
66    org/armedbear/j/*.bsh \
67    org/armedbear/j/version org/armedbear/j/build \
68    org/armedbear/j/images/*.png \
69    bsh/*.class bsh/classpath/*.class bsh/commands/*.class bsh/commands/*.bsh bsh/reflect/*.class \
70    gnu/regexp/*.class gnu/regexp/MessagesBundle.properties \
71    org/armedbear/j/mail/*.class \
72    org/armedbear/j/jdb/*.class \
73    org/armedbear/j/*.keywords org/armedbear/j/mail/*.keywords \
74    org/armedbear/lisp/*.class org/armedbear/lisp/*.lisp org/armedbear/lisp/build
75
76classes.stamp: classes
77  test -f classes.stamp || touch classes.stamp
78
79distdir:
80  -rm -rf $(distdir)
81  mkdir $(distdir)
82  find . | xargs chmod u+w
83  chmod +x configure
84  chmod +x install-sh
85  chmod +x mkinstalldirs
86  cp -p  j.in j.bat.in configure configure.in Makefile.in install-sh mkinstalldirs COPYING $(distdir)
87  cp -p  build.properties build.xml $(distdir)
88  mkdir $(distdir)/src
89  cp -p  src/Makefile.in src/manifest src/*.java $(distdir)/src
90  mkdir $(distdir)/src/jpty
91  cp -p  src/jpty/Makefile.in src/jpty/jpty.c $(distdir)/src/jpty
92  cp -p  src/jpty/build.xml $(distdir)/src/jpty
93  mkdir $(distdir)/src/org
94  mkdir $(distdir)/src/org/armedbear
95  mkdir $(distdir)/src/org/armedbear/j
96  -cp -p  src/org/armedbear/j/Makefile.in $(distdir)/src/org/armedbear/j
97  -cp -p  src/org/armedbear/j/version.in  $(distdir)/src/org/armedbear/j
98  -cp -p  src/org/armedbear/j/*.java      $(distdir)/src/org/armedbear/j
99  -cp -p  src/org/armedbear/j/*.keywords  $(distdir)/src/org/armedbear/j
100  -cp -p  src/org/armedbear/j/*.bsh       $(distdir)/src/org/armedbear/j
101  mkdir $(distdir)/src/org/armedbear/j/mail
102  -cp -p  src/org/armedbear/j/mail/Makefile.in src/org/armedbear/j/mail/*.java src/org/armedbear/j/mail/*.keywords $(distdir)/src/org/armedbear/j/mail
103  mkdir $(distdir)/src/org/armedbear/j/jdb
104  -cp -p  src/org/armedbear/j/jdb/Makefile.in src/org/armedbear/j/jdb/*.java $(distdir)/src/org/armedbear/j/jdb
105  mkdir $(distdir)/src/org/armedbear/j/images
106  -cp -p  src/org/armedbear/j/images/*.png $(distdir)/src/org/armedbear/j/images
107  mkdir $(distdir)/src/org/armedbear/lisp
108  -cp -p  src/org/armedbear/lisp/Makefile.in src/org/armedbear/lisp/build.xml src/org/armedbear/lisp/*.java src/org/armedbear/lisp/*.lisp $(distdir)/src/org/armedbear/lisp
109  mkdir $(distdir)/src/bsh
110  -cp -p  src/bsh/Makefile.in src/bsh/*.java  src/bsh/bsh.jj src/bsh/bsh.jjt $(distdir)/src/bsh
111  mkdir $(distdir)/src/bsh/classpath
112  -cp -p  src/bsh/classpath/Makefile.in src/bsh/classpath/*.java  $(distdir)/src/bsh/classpath
113  mkdir $(distdir)/src/bsh/commands
114  -cp -p  src/bsh/commands/Makefile.in src/bsh/commands/*.java src/bsh/commands/*.bsh $(distdir)/src/bsh/commands
115  mkdir $(distdir)/src/bsh/reflect
116  -cp -p  src/bsh/reflect/Makefile.in src/bsh/reflect/*.java  $(distdir)/src/bsh/reflect
117  mkdir $(distdir)/src/gnu
118  mkdir $(distdir)/src/gnu/regexp
119  -cp -p  src/gnu/regexp/Makefile.in src/gnu/regexp/*.java  src/gnu/regexp/MessagesBundle.properties $(distdir)/src/gnu/regexp
120  mkdir $(distdir)/doc
121  cp -p  doc/*.html $(distdir)/doc
122  cp -p  doc/*.css $(distdir)/doc
123  mkdir $(distdir)/themes
124  -cp -p  themes/* $(distdir)/themes
125  mkdir $(distdir)/examples
126  -cp -p  examples/* $(distdir)/examples
127
128dist: distdir
129  -rm -f $(distdir).zip
130  -rm -f $(distdir).tar.gz
131  zip -q -r $(distdir).zip $(distdir)
132  -rm -rf temp
133  mkdir temp
134  cd temp && unzip -q ../$(distdir).zip
135  diff --brief -N -r $(distdir) temp/$(distdir)
136  rm -rf temp
137  tar czf $(distdir).tar.gz $(distdir)
138  mkdir temp
139  cd temp && tar xfz ../$(distdir).tar.gz
140  diff --brief -N -r $(distdir) temp/$(distdir)
141  rm -rf temp
142  rm -rf $(distdir)
143
144bindistdir: j.jar
145  -rm -rf $(distdir)
146  mkdir $(distdir)
147  cp -p  j.jar COPYING $(distdir)
148  mkdir $(distdir)/doc
149  cp -p  doc/*.html $(distdir)/doc
150  cp -p  doc/*.css $(distdir)/doc
151  mkdir $(distdir)/themes
152  -cp -p  themes/* $(distdir)/themes
153  mkdir $(distdir)/examples
154  -cp -p  examples/* $(distdir)/examples
155
156bindist: bindistdir
157  -rm -f $(distdir)-binary.tar.gz
158  -rm -f $(distdir)-binary.zip
159  zip -q -r $(distdir)-binary.zip $(distdir)
160  -rm -rf temp
161  mkdir temp
162  cd temp && unzip -q ../$(distdir)-binary.zip
163  diff --brief -N -r $(distdir) temp/$(distdir)
164  rm -rf temp
165  tar czf $(distdir)-binary.tar.gz $(distdir)
166  mkdir temp
167  cd temp && tar xfz ../$(distdir)-binary.tar.gz
168  diff --brief -N -r $(distdir) temp/$(distdir)
169  rm -rf temp
170  -rm -rf $(distdir)
171
172install:
173  ./mkinstalldirs $(datadir)/j $(datadir)/j/themes $(datadir)/doc/j $(bindir)
174  $(INSTALL_DATA) j.jar $(datadir)/j
175  $(INSTALL_SCRIPT) j $(bindir)
176  if [ -f src/jpty/$(JPTY) ]; then $(INSTALL_PROGRAM) src/jpty/$(JPTY) $(bindir); fi
177  if [ -f j.bat ]; then $(INSTALL_SCRIPT) j.bat $(bindir); fi
178  for i in themes/* ; do test -f $$i && $(INSTALL_DATA) $$i $(datadir)/j/themes ; done
179  $(INSTALL_DATA) doc/*.html $(datadir)/doc/j
180  $(INSTALL_DATA) doc/*.css $(datadir)/doc/j
181
182uninstall:
183  -rm -f $(datadir)/j/j.jar
184  -rm -f $(bindir)/j
185  -rm -f $(bindir)/jpty.exe
186  -rm -f $(bindir)/jpty
187  -rm -f $(bindir)/j.bat
188  -rm -f $(datadir)/j/themes/*
189  -rmdir $(datadir)/j/themes
190  -rm -f $(datadir)/doc/j/*.html
191  -rm -f $(datadir)/doc/j/*.css
192  -rmdir $(datadir)/doc/j
193  -rmdir $(datadir)/j
194
195clean:
196  -rm -f *.zip
197  -rm -f *.tar.gz
198  -rm -f *.jar
199  -rm -f *.class
200  -rm -f src/*.class
201  -rm -f src/jpty/jpty src/jpty/jpty.exe
202  -rm -f src/org/armedbear/j/*.class
203  -rm -f src/org/armedbear/j/build
204  -rm -f src/org/armedbear/j/mail/*.class
205  -rm -f src/org/armedbear/j/jdb/*.class
206  -rm -f src/org/armedbear/lisp/*.class
207  -rm -f src/org/armedbear/lisp/build
208  -rm -f src/bsh/*.class
209  -rm -f src/bsh/classpath/*.class
210  -rm -f src/bsh/commands/*.class
211  -rm -f src/bsh/reflect/*.class
212  -rm -f src/gnu/regexp/*.class
213  -rm -rf $(distdir)
214  -rm -f classes.stamp
215
216distclean: clean
217  -rm -f config.status config.log config.cache Makefile j j.bat
218  -rm -f src/Makefile
219  -rm -f src/jpty/Makefile
220  -rm -f src/bsh/Makefile
221  -rm -f src/bsh/classpath/Makefile
222  -rm -f src/bsh/commands/Makefile
223  -rm -f src/bsh/reflect/Makefile
224  -rm -f src/gnu/regexp/Makefile
225  -rm -f src/org/armedbear/j/Makefile
226  -rm -f src/org/armedbear/j/version
227  -rm -f src/org/armedbear/j/mail/Makefile
228  -rm -f src/org/armedbear/j/jdb/Makefile
229  -rm -f src/org/armedbear/lisp/Makefile
230
231j.zip:
232  -rm -f j.zip
233  find . | xargs chmod u+w
234  chmod +x configure
235  chmod +x install-sh
236  chmod +x mkinstalldirs
237  zip -q j.zip \
238    j.in j.bat.in configure configure.in Makefile.in \
239    install-sh mkinstalldirs COPYING \
240    build.xml build.properties \
241    src/Makefile.in src/manifest src/*.java \
242    src/jpty/Makefile.in src/jpty/build.xml src/jpty/jpty.c \
243    src/org/armedbear/j/Makefile.in src/org/armedbear/j/version.in src/org/armedbear/j/*.java \
244    src/org/armedbear/j/*.keywords \
245    src/org/armedbear/j/mail/Makefile.in src/org/armedbear/j/mail/*.java \
246    src/org/armedbear/j/mail/*.keywords \
247    src/org/armedbear/j/jdb/Makefile.in src/org/armedbear/j/jdb/*.java \
248    src/org/armedbear/j/*.bsh \
249    src/org/armedbear/j/images/*.png \
250    src/org/armedbear/lisp/Makefile.in src/org/armedbear/lisp/build.xml \
251    src/org/armedbear/lisp/*.java src/org/armedbear/lisp/*.lisp \
252    src/bsh/Makefile.in src/bsh/*.j* \
253    src/bsh/classpath/Makefile.in src/bsh/classpath/*.java \
254    src/bsh/commands/Makefile.in src/bsh/commands/*.java src/bsh/commands/*.bsh \
255    src/bsh/reflect/Makefile.in src/bsh/reflect/*.java \
256    src/gnu/regexp/Makefile.in src/gnu/regexp/*.java src/gnu/regexp/MessagesBundle.properties \
257    doc/*.html doc/*.css \
258    themes/* \
259    examples/* \
260    -x themes/CVS/ examples/CVS/
261  unzip -t -qq j.zip
262
263j-jar.zip: j.jar
264  -rm -f j-jar.zip
265  zip -q j-jar.zip j.jar
266  unzip -t -qq j-jar.zip
267
268snapshot: j.zip j-jar.zip
Note: See TracBrowser for help on using the repository browser.