source: trunk/j/Makefile.in @ 4525

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

configure.in => configure.ac

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