318 |
28 May 07 |
peter |
## Process this file with automake to produce Makefile.in |
318 |
28 May 07 |
peter |
2 |
## |
318 |
28 May 07 |
peter |
## $Id$ |
318 |
28 May 07 |
peter |
4 |
|
318 |
28 May 07 |
peter |
# Copyright (C) 2007 Peter Johansson |
859 |
02 Dec 08 |
peter |
# Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
318 |
28 May 07 |
peter |
7 |
# |
318 |
28 May 07 |
peter |
# This file is part of WeNNI, |
825 |
26 Nov 08 |
jari |
# http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI |
318 |
28 May 07 |
peter |
10 |
# |
318 |
28 May 07 |
peter |
# WeNNI is free software; you can redistribute it and/or modify it |
318 |
28 May 07 |
peter |
# under the terms of the GNU General Public License as published by the |
824 |
26 Nov 08 |
jari |
# Free Software Foundation; either version 3 of the License, or (at |
318 |
28 May 07 |
peter |
# your option) any later version. |
318 |
28 May 07 |
peter |
15 |
# |
318 |
28 May 07 |
peter |
# WeNNI is distributed in the hope that it will be useful, but WITHOUT |
318 |
28 May 07 |
peter |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
318 |
28 May 07 |
peter |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
318 |
28 May 07 |
peter |
# for more details. |
318 |
28 May 07 |
peter |
20 |
# |
318 |
28 May 07 |
peter |
# You should have received a copy of the GNU General Public License |
824 |
26 Nov 08 |
jari |
# along with WeNNI. If not, see <http://www.gnu.org/licenses/>. |
318 |
28 May 07 |
peter |
23 |
|
869 |
03 Dec 08 |
peter |
24 |
include $(top_srcdir)/install_plugin.am |
869 |
03 Dec 08 |
peter |
25 |
|
320 |
29 May 07 |
peter |
26 |
TOPBUILDDIR = .build |
320 |
29 May 07 |
peter |
27 |
SUBDIR = se/lu/thep/wenni |
320 |
29 May 07 |
peter |
28 |
BUILDDIR = $(TOPBUILDDIR)/$(SUBDIR) |
888 |
05 Dec 08 |
peter |
29 |
MANIFEST_FILE = MANIFEST.MF |
320 |
29 May 07 |
peter |
30 |
|
821 |
25 Nov 08 |
jari |
31 |
JAVA = WeNNI.java |
888 |
05 Dec 08 |
peter |
32 |
CLASS = $(BUILDDIR)/$(JAVA:.java=.class) |
859 |
02 Dec 08 |
peter |
33 |
WeNNI = WeNNI.jar |
892 |
07 Dec 08 |
jari |
34 |
EXTRAjars = $(PLUGINutilities)/$(PLUGINutilities).jar |
892 |
07 Dec 08 |
jari |
35 |
inst_JARS = $(WeNNI) $(EXTRAjars) |
320 |
29 May 07 |
peter |
36 |
|
905 |
08 Dec 08 |
peter |
37 |
EXTRA_DIST = $(JAVA) |
905 |
08 Dec 08 |
peter |
38 |
|
856 |
02 Dec 08 |
jari |
39 |
if DOWNLOADBASEAPI |
889 |
05 Dec 08 |
peter |
40 |
DOWNLOADDEP=$(builddir)/BaseCoreAPI |
856 |
02 Dec 08 |
jari |
41 |
endif |
320 |
29 May 07 |
peter |
42 |
|
859 |
02 Dec 08 |
peter |
43 |
all-local: $(WeNNI) |
320 |
29 May 07 |
peter |
44 |
|
868 |
03 Dec 08 |
jari |
45 |
clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR) $(MANIFEST_FILE) ) |
320 |
29 May 07 |
peter |
46 |
|
844 |
01 Dec 08 |
jari |
47 |
distclean-local: clean-local |
856 |
02 Dec 08 |
jari |
48 |
@( rm -rf $(DOWNLOADDEP) $(PLUGINutilities) $(PLUGINutilities).tgz ) |
320 |
29 May 07 |
peter |
49 |
|
871 |
03 Dec 08 |
peter |
50 |
install-exec-local: $(inst_JARS) |
837 |
28 Nov 08 |
peter |
51 |
@$(NORMAL_INSTALL) |
871 |
03 Dec 08 |
peter |
52 |
test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" |
871 |
03 Dec 08 |
peter |
53 |
@list='$(inst_JARS)'; for p in $$list; do \ |
871 |
03 Dec 08 |
peter |
54 |
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ |
871 |
03 Dec 08 |
peter |
55 |
if test -f $$d$$p; then \ |
871 |
03 Dec 08 |
peter |
56 |
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ |
904 |
08 Dec 08 |
peter |
57 |
echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ |
904 |
08 Dec 08 |
peter |
58 |
$(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ |
871 |
03 Dec 08 |
peter |
59 |
else :; fi; \ |
871 |
03 Dec 08 |
peter |
60 |
done |
320 |
29 May 07 |
peter |
61 |
|
865 |
03 Dec 08 |
peter |
62 |
uninstall-local: |
865 |
03 Dec 08 |
peter |
63 |
@$(NORMAL_UNINSTALL) |
871 |
03 Dec 08 |
peter |
64 |
@list='$(inst_JARS)'; for p in $$list; do \ |
871 |
03 Dec 08 |
peter |
65 |
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ |
871 |
03 Dec 08 |
peter |
66 |
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ |
871 |
03 Dec 08 |
peter |
67 |
rm -f "$(DESTDIR)$(bindir)/$$f"; \ |
871 |
03 Dec 08 |
peter |
68 |
done |
865 |
03 Dec 08 |
peter |
69 |
|
903 |
08 Dec 08 |
peter |
70 |
$(WeNNI): $(BUILDDIR) $(PLUGINutilities) $(DOWNLOADDEP) $(CLASS) $(MANIFEST_FILE) |
859 |
02 Dec 08 |
peter |
71 |
@echo Creating $(WeNNI) |
868 |
03 Dec 08 |
jari |
72 |
@(cd $(TOPBUILDDIR) ; $(JAR) cmf ../$(MANIFEST_FILE) ../$(WeNNI) .) |
320 |
29 May 07 |
peter |
73 |
|
888 |
05 Dec 08 |
peter |
74 |
$(MANIFEST_FILE): Makefile |
858 |
02 Dec 08 |
jari |
75 |
@echo "Manifest-Version: 1.0" > "$(MANIFEST_FILE)" |
858 |
02 Dec 08 |
jari |
76 |
@echo "Class-Path: $(PLUGINutilities).jar" >> $(MANIFEST_FILE) |
858 |
02 Dec 08 |
jari |
77 |
|
837 |
28 Nov 08 |
peter |
78 |
$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile |
837 |
28 Nov 08 |
peter |
79 |
@$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@ |
320 |
29 May 07 |
peter |
80 |
|
837 |
28 Nov 08 |
peter |
81 |
$(CLASS): $(BUILDDIR)/$(JAVA) |
868 |
03 Dec 08 |
jari |
82 |
$(JAVAC) $(JAVACFLAGS) -cp $(JAVACCLASSPATH):$(TOPBUILDDIR) $< |
320 |
29 May 07 |
peter |
83 |
|
320 |
29 May 07 |
peter |
84 |
$(BUILDDIR): |
837 |
28 Nov 08 |
peter |
85 |
@$(MKDIR_P) $@ |
320 |
29 May 07 |
peter |
86 |
|
858 |
02 Dec 08 |
jari |
87 |
$(TOPBUILDDIR): |
858 |
02 Dec 08 |
jari |
88 |
@$(MKDIR_P) $@ |
858 |
02 Dec 08 |
jari |
89 |
|
889 |
05 Dec 08 |
peter |
90 |
$(builddir)/BaseCoreAPI: |
856 |
02 Dec 08 |
jari |
91 |
$(MKDIR_P) $@ |
856 |
02 Dec 08 |
jari |
92 |
( cd $@ ; \ |
856 |
02 Dec 08 |
jari |
93 |
wget $(BASE2CoreURL)/BASE2Core.jar ; \ |
856 |
02 Dec 08 |
jari |
94 |
wget $(BASE2CoreURL)/BASE2CorePlugins.jar ) |
856 |
02 Dec 08 |
jari |
95 |
|
903 |
08 Dec 08 |
peter |
96 |
$(PLUGINutilities): $(PLUGINutilities).tgz |
892 |
07 Dec 08 |
jari |
97 |
$(AMTAR) zxf $< |
844 |
01 Dec 08 |
jari |
98 |
|
844 |
01 Dec 08 |
jari |
99 |
$(PLUGINutilities).tgz: |
848 |
01 Dec 08 |
jari |
100 |
wget -O $@ $(PLUGINutilitiesURL) |