source: plugins/base1/se.lu.thep.wenni/trunk/base/base2/Makefile.am @ 858

Last change on this file since 858 was 858, checked in by Jari Häkkinen, 13 years ago

Addresses #50. Working with BASE-plugin communication issues and building a proper WeNNI.java

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 858 2008-12-02 15:33:59Z jari $
4
5# Copyright (C) 2007 Peter Johansson
6# Copyright (C) 2008 Jari Häkkinen
7#
8# This file is part of WeNNI,
9# http://baseplugins.thep.lu.se/wiki/se.lu.thep.WeNNI
10#
11# WeNNI is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by the
13# Free Software Foundation; either version 3 of the License, or (at
14# your option) any later version.
15#
16# WeNNI is distributed in the hope that it will be useful, but WITHOUT
17# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19# for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with WeNNI. If not, see <http://www.gnu.org/licenses/>.
23
24TOPBUILDDIR = .build
25SUBDIR = se/lu/thep/wenni
26BUILDDIR = $(TOPBUILDDIR)/$(SUBDIR)
27MANIFEST_FILE = "$(TOPBUILDDIR)/META-INF/MANIFEST.MF"
28
29JAVA = WeNNI.java
30CLASS = $(JAVA:.java=.class)
31JAR  = WeNNI.jar
32
33if DOWNLOADBASEAPI
34DOWNLOADDEP=BaseCoreAPI
35endif
36
37all-local: $(JAR)
38
39clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR))
40
41distclean-local: clean-local
42  @( rm -rf $(DOWNLOADDEP) $(PLUGINutilities) $(PLUGINutilities).tgz )
43
44install-exec-local: $(JAR)
45  @$(NORMAL_INSTALL)
46  test -z "$(bindir)" || $(MKDIR_P) "$(bindir)"
47  $(INSTALL) "$(JAR)" "$(bindir)"
48  $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(bindir)"
49
50install-plugin: $(JAR)
51  @$(NORMAL_INSTALL)
52  test -z "$(PLUGINDIR)" || $(MKDIR_P) "$(PLUGINDIR)"
53  $(INSTALL) "$(JAR)" "$(PLUGINDIR)"
54  $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(PLUGINDIR)"
55
56$(JAR): $(BUILDDIR) $(PLUGINutilities) $(DOWNLOADDEP) $(CLASS) manifest
57  @echo Creating $(JAR)
58  @(cd $(TOPBUILDDIR) ; jar cf ../$(JAR) .)
59
60manifest: $(TOPBUILDDIR)
61  @$(MKDIR_P) $(TOPBUILDDIR)/META-INF
62  @echo "Manifest-Version: 1.0" > "$(MANIFEST_FILE)"
63  @echo "Class-Path: $(PLUGINutilities).jar" >> $(MANIFEST_FILE)
64
65$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile
66  @$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
67
68$(CLASS): $(BUILDDIR)/$(JAVA)
69  javac -cp $(JAVACFLAGS):$(TOPBUILDDIR)  $<
70
71$(BUILDDIR):
72  @$(MKDIR_P) $@
73
74$(TOPBUILDDIR):
75  @$(MKDIR_P) $@
76
77BaseCoreAPI:
78  $(MKDIR_P) $@
79  ( cd $@ ; \
80    wget $(BASE2CoreURL)/BASE2Core.jar ; \
81    wget $(BASE2CoreURL)/BASE2CorePlugins.jar )
82
83$(PLUGINutilities): $(PLUGINutilities).tgz
84  tar zxpf $<
85
86$(PLUGINutilities).tgz:
87  wget -O $@ $(PLUGINutilitiesURL)
Note: See TracBrowser for help on using the repository browser.