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

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

Addresses #50, #53. Automatic download of required components. Using external abstract class, updatede INSTALL.

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