source: tags/0.14.1/j/Makefile.in

Last change on this file was 11354, checked in by ehuelsmann, 16 years ago

More steps toward a release:

  • Mark some files with native line endings, such as README
  • Edit README to reflect the current situation
  • Property svn:eol-style set to LF
File size: 9.4 KB
Line 
1# Makefile.in
2
3# Copyright (C) 1998-2005 Peter Graves
4# $Id: Makefile.in,v 1.30 2005-11-21 15:22:49 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@
25libdir=@libdir@
26datadir=@datadir@
27
28INSTALL=@INSTALL@
29INSTALL_DATA=@INSTALL_DATA@
30INSTALL_PROGRAM=@INSTALL_PROGRAM@
31INSTALL_SCRIPT=@INSTALL_SCRIPT@
32
33JAVA=@JAVA@
34JAVA_OPTIONS=@JAVA_OPTIONS@
35JAR=@JAR@
36
37JPTY=@JPTY@
38
39LIBABCL=@LIBABCL@
40
41distdir = j-$(version)
42
43all: j.jar $(JPTY) $(LIBABCL)
44
45Makefile: Makefile.in config.status
46  $(SHELL) ./config.status
47
48config.status: configure
49  $(SHELL) ./config.status --recheck
50
51classes:
52  set -e; \
53  for i in src/gnu/regexp \
54    src/org/armedbear/j/mail \
55    src/org/armedbear/j/jdb \
56    src/org/armedbear/j \
57    src/org/armedbear/lisp \
58    src/org/armedbear/lisp/java/awt \
59    src; \
60  do \
61    ( cd $$i && $(MAKE) ); \
62  done
63  cd src/org/armedbear/j && date > build && hostname >> build
64
65fasls:
66  $(JAVA) -cp ./src org.armedbear.lisp.Main --noinit --eval "(compile-system :zip nil :quit t)"
67  date > src/org/armedbear/j/build && hostname >> src/org/armedbear/j/build
68
69jpty:
70  cd src/jpty && $(MAKE)
71
72jpty.exe:
73  cd src/jpty && $(MAKE)
74
75libabcl.so:
76  cd src/org/armedbear/lisp && $(MAKE) libabcl.so
77
78j.jar: classes.stamp fasls
79  cd src && \
80    $(JAR) cmf manifest ../j.jar Main.class org/armedbear/j/*.class && \
81    $(JAR) uf ../j.jar org/armedbear/j/version org/armedbear/j/build \
82    org/armedbear/j/images/*.png && \
83    $(JAR) uf ../j.jar gnu/regexp/*.class gnu/regexp/MessagesBundle.properties && \
84    $(JAR) uf ../j.jar org/armedbear/j/mail/*.class && \
85    $(JAR) uf ../j.jar org/armedbear/j/jdb/*.class && \
86    $(JAR) uf ../j.jar org/armedbear/j/*.keywords && \
87    $(JAR) uf ../j.jar org/armedbear/j/mail/*.keywords && \
88    $(JAR) uf ../j.jar org/armedbear/lisp/*.class && \
89    $(JAR) uf ../j.jar org/armedbear/lisp/java/awt/*.class && \
90    $(JAR) uf ../j.jar org/armedbear/lisp/*.lisp org/armedbear/lisp/LICENSE org/armedbear/lisp/build && \
91    find . -name '*.abcl' | xargs $(JAR) uf ../j.jar && \
92    find . -name '*.cls' | xargs $(JAR) uf ../j.jar
93
94classes.stamp: classes
95  test -f classes.stamp || touch classes.stamp
96
97distdir:
98  -rm -rf $(distdir)
99  mkdir $(distdir)
100  find . | xargs chmod u+w
101  chmod +x configure
102  chmod +x install-sh
103  chmod +x mkinstalldirs
104  cp -p  j.in j.bat.in abcl.in configure configure.ac Makefile.in install-sh mkinstalldirs COPYING $(distdir)
105  cp -p  build.properties build.xml $(distdir)
106  mkdir $(distdir)/src
107  cp -p  src/Makefile.in src/manifest src/*.java $(distdir)/src
108  mkdir $(distdir)/src/jpty
109  cp -p  src/jpty/Makefile.in src/jpty/jpty.c $(distdir)/src/jpty
110  cp -p  src/jpty/build.xml $(distdir)/src/jpty
111  mkdir $(distdir)/src/org
112  mkdir $(distdir)/src/org/armedbear
113  mkdir $(distdir)/src/org/armedbear/j
114  -cp -p  src/org/armedbear/j/Makefile.in $(distdir)/src/org/armedbear/j
115  -cp -p  src/org/armedbear/j/version.in  $(distdir)/src/org/armedbear/j
116  -cp -p  src/org/armedbear/j/*.java      $(distdir)/src/org/armedbear/j
117  -cp -p  src/org/armedbear/j/*.keywords  $(distdir)/src/org/armedbear/j
118  mkdir $(distdir)/src/org/armedbear/j/mail
119  -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
120  mkdir $(distdir)/src/org/armedbear/j/jdb
121  -cp -p  src/org/armedbear/j/jdb/Makefile.in src/org/armedbear/j/jdb/*.java $(distdir)/src/org/armedbear/j/jdb
122  mkdir $(distdir)/src/org/armedbear/j/images
123  -cp -p  src/org/armedbear/j/images/*.png $(distdir)/src/org/armedbear/j/images
124  mkdir $(distdir)/src/org/armedbear/lisp
125  -cp -p  src/org/armedbear/lisp/Makefile.in src/org/armedbear/lisp/build.xml src/org/armedbear/lisp/*.java src/org/armedbear/lisp/*.c src/org/armedbear/lisp/*.lisp src/org/armedbear/lisp/LICENSE $(distdir)/src/org/armedbear/lisp
126  mkdir $(distdir)/src/org/armedbear/lisp/java
127  mkdir $(distdir)/src/org/armedbear/lisp/java/awt
128  -cp -p  src/org/armedbear/lisp/java/awt/Makefile.in src/org/armedbear/lisp/java/awt/*.java $(distdir)/src/org/armedbear/lisp/java/awt
129  mkdir $(distdir)/src/gnu
130  mkdir $(distdir)/src/gnu/regexp
131  -cp -p  src/gnu/regexp/Makefile.in src/gnu/regexp/*.java  src/gnu/regexp/MessagesBundle.properties $(distdir)/src/gnu/regexp
132  mkdir $(distdir)/doc
133  cp -p  doc/*.html $(distdir)/doc
134  cp -p  doc/*.css $(distdir)/doc
135  mkdir $(distdir)/themes
136  -cp -p  themes/* $(distdir)/themes
137  mkdir $(distdir)/examples
138  -cp -p  examples/* $(distdir)/examples
139
140dist: distdir
141  -rm -f $(distdir).zip
142  -rm -f $(distdir).tar.gz
143  zip -q -r $(distdir).zip $(distdir)
144  -rm -rf temp
145  mkdir temp
146  cd temp && unzip -q ../$(distdir).zip
147  diff --brief -N -r $(distdir) temp/$(distdir)
148  rm -rf temp
149  tar czf $(distdir).tar.gz $(distdir)
150  mkdir temp
151  cd temp && tar xfz ../$(distdir).tar.gz
152  diff --brief -N -r $(distdir) temp/$(distdir)
153  rm -rf temp
154  rm -rf $(distdir)
155
156bindistdir: j.jar
157  -rm -rf $(distdir)
158  mkdir $(distdir)
159  cp -p  j.jar COPYING $(distdir)
160  mkdir $(distdir)/doc
161  cp -p  doc/*.html $(distdir)/doc
162  cp -p  doc/*.css $(distdir)/doc
163  mkdir $(distdir)/themes
164  -cp -p  themes/* $(distdir)/themes
165  mkdir $(distdir)/examples
166  -cp -p  examples/* $(distdir)/examples
167
168bindist: bindistdir
169  -rm -f $(distdir)-binary.tar.gz
170  -rm -f $(distdir)-binary.zip
171  zip -q -r $(distdir)-binary.zip $(distdir)
172  -rm -rf temp
173  mkdir temp
174  cd temp && unzip -q ../$(distdir)-binary.zip
175  diff --brief -N -r $(distdir) temp/$(distdir)
176  rm -rf temp
177  tar czf $(distdir)-binary.tar.gz $(distdir)
178  mkdir temp
179  cd temp && tar xfz ../$(distdir)-binary.tar.gz
180  diff --brief -N -r $(distdir) temp/$(distdir)
181  rm -rf temp
182  -rm -rf $(distdir)
183
184install:
185  ./mkinstalldirs $(datadir)/j $(datadir)/j/themes $(datadir)/doc/j $(bindir) $(libdir)/abcl
186  $(INSTALL_DATA) j.jar $(datadir)/j
187  $(INSTALL_SCRIPT) j $(bindir)
188  $(INSTALL_SCRIPT) abcl $(bindir)
189  if [ -f src/org/armedbear/lisp/$(LIBABCL) ]; then $(INSTALL_PROGRAM) src/org/armedbear/lisp/$(LIBABCL) $(libdir)/abcl; fi
190  if [ -f src/jpty/$(JPTY) ]; then $(INSTALL_PROGRAM) src/jpty/$(JPTY) $(bindir); fi
191  for i in themes/* ; do test -f $$i && $(INSTALL_DATA) $$i $(datadir)/j/themes ; done
192  $(INSTALL_DATA) doc/*.html $(datadir)/doc/j
193  $(INSTALL_DATA) doc/*.css $(datadir)/doc/j
194
195uninstall:
196  -rm -f $(datadir)/j/j.jar
197  -rm -f $(bindir)/j
198  -rm -f $(bindir)/abcl
199  -rm -f $(libdir)/abcl/libabcl.so
200  -rm -f $(bindir)/jpty.exe
201  -rm -f $(bindir)/jpty
202  -rm -f $(datadir)/j/themes/*
203  -rmdir $(datadir)/j/themes
204  -rm -f $(datadir)/doc/j/*.html
205  -rm -f $(datadir)/doc/j/*.css
206  -rmdir $(datadir)/doc/j
207  -rmdir $(datadir)/j
208
209clean:
210  -rm -f *.zip
211  -rm -f *.tar.gz
212  -rm -f *.jar
213  -rm -f *.class
214  -rm -f src/*.class
215  -rm -f src/jpty/jpty src/jpty/jpty.exe
216  -rm -f src/org/armedbear/j/*.class
217  -rm -f src/org/armedbear/j/build
218  -rm -f src/org/armedbear/j/mail/*.class
219  -rm -f src/org/armedbear/j/jdb/*.class
220  -rm -f src/org/armedbear/lisp/*.class
221  -rm -f src/org/armedbear/lisp/*.abcl
222  -rm -f src/org/armedbear/lisp/*.cls
223  -rm -f src/org/armedbear/lisp/ControlC.h
224  -rm -f src/org/armedbear/lisp/native.h
225  -rm -f src/org/armedbear/lisp/libabcl.so
226  -rm -f src/org/armedbear/lisp/java/awt/*.class
227  -rm -f src/org/armedbear/lisp/build
228  -rm -f src/gnu/regexp/*.class
229  -rm -rf $(distdir)
230  -rm -f classes.stamp
231
232distclean: clean
233  -rm -f config.status config.log config.cache Makefile j abcl
234  -rm -f src/Makefile
235  -rm -f src/jpty/Makefile
236  -rm -f src/gnu/regexp/Makefile
237  -rm -f src/org/armedbear/j/Makefile
238  -rm -f src/org/armedbear/j/version
239  -rm -f src/org/armedbear/j/mail/Makefile
240  -rm -f src/org/armedbear/j/jdb/Makefile
241  -rm -f src/org/armedbear/lisp/Makefile
242  -rm -f src/org/armedbear/lisp/java/awt/Makefile
243
244j.zip:
245  -rm -f j.zip
246  find . | xargs chmod u+w
247  chmod +x configure
248  chmod +x install-sh
249  chmod +x mkinstalldirs
250  zip -q j.zip \
251    j.in j.bat.in abcl.in configure configure.ac Makefile.in \
252    install-sh mkinstalldirs COPYING \
253    build.xml build.properties \
254    src/Makefile.in src/manifest src/*.java \
255    src/jpty/Makefile.in src/jpty/build.xml src/jpty/jpty.c \
256    src/org/armedbear/j/Makefile.in src/org/armedbear/j/version.in src/org/armedbear/j/*.java \
257    src/org/armedbear/j/*.keywords \
258    src/org/armedbear/j/mail/Makefile.in src/org/armedbear/j/mail/*.java \
259    src/org/armedbear/j/mail/*.keywords \
260    src/org/armedbear/j/jdb/Makefile.in src/org/armedbear/j/jdb/*.java \
261    src/org/armedbear/j/images/*.png \
262    src/org/armedbear/lisp/Makefile.in src/org/armedbear/lisp/build.xml \
263    src/org/armedbear/lisp/*.java \
264    src/org/armedbear/lisp/*.c \
265    src/org/armedbear/lisp/*.lisp \
266    src/org/armedbear/lisp/LICENSE \
267    src/org/armedbear/lisp/java/awt/Makefile.in \
268    src/org/armedbear/lisp/java/awt/*.java \
269    src/org/armedbear/lisp/tests/*.lisp src/org/armedbear/lisp/tests/*.cl \
270    src/gnu/regexp/Makefile.in src/gnu/regexp/*.java src/gnu/regexp/MessagesBundle.properties \
271    doc/*.html doc/*.css \
272    themes/* \
273    examples/* \
274    -x themes/CVS/ examples/CVS/
275  unzip -t -qq j.zip
276
277j-jar.zip: j.jar
278  -rm -f j-jar.zip
279  zip -q j-jar.zip j.jar
280  unzip -t -qq j-jar.zip
281
282snapshot: j.zip j-jar.zip
Note: See TracBrowser for help on using the repository browser.