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

Last change on this file since 870 was 870, checked in by Peter Johansson, 13 years ago

calling tar through script 'missing'. refs #153.

  • 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 870 2008-12-03 22:19:37Z peter $
4
5# Copyright (C) 2007 Peter Johansson
6# Copyright (C) 2008 Jari Häkkinen, Peter Johansson
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
24include $(top_srcdir)/install_plugin.am
25
26TOPBUILDDIR = .build
27SUBDIR = se/lu/thep/wenni
28BUILDDIR = $(TOPBUILDDIR)/$(SUBDIR)
29MANIFEST_FILE = "MANIFEST.MF"
30
31JAVA = WeNNI.java
32CLASS = $(JAVA:.java=.class)
33WeNNI  = WeNNI.jar
34
35if DOWNLOADBASEAPI
36DOWNLOADDEP=BaseCoreAPI
37endif
38
39all-local: $(WeNNI)
40
41clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR) $(MANIFEST_FILE) )
42
43distclean-local: clean-local
44  @( rm -rf $(DOWNLOADDEP) $(PLUGINutilities) $(PLUGINutilities).tgz )
45
46install-exec-local: $(WeNNI)
47  @$(NORMAL_INSTALL)
48  test -z "$(bindir)" || $(MKDIR_P) "$(bindir)"
49  $(INSTALL) "$(WeNNI)" "$(bindir)"
50  $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(bindir)"
51
52uninstall-local:
53  @$(NORMAL_UNINSTALL)
54  rm -f "$(bindir)/$(WeNNI)"
55  rm -f "$(bindir)/$(PLUGINutilities).jar"
56
57$(WeNNI): $(BUILDDIR) $(PLUGINutilities) $(DOWNLOADDEP) $(CLASS) manifest
58  @echo Creating $(WeNNI)
59  @(cd $(TOPBUILDDIR) ; $(JAR) cmf ../$(MANIFEST_FILE) ../$(WeNNI) .)
60
61manifest: $(TOPBUILDDIR)
62  @$(MKDIR_P) $(TOPBUILDDIR)/META-INF
63  @echo "Manifest-Version: 1.0" > "$(MANIFEST_FILE)"
64  @echo "Class-Path: $(PLUGINutilities).jar" >> $(MANIFEST_FILE)
65
66$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile
67  @$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
68
69$(CLASS): $(BUILDDIR)/$(JAVA)
70  $(JAVAC) $(JAVACFLAGS) -cp $(JAVACCLASSPATH):$(TOPBUILDDIR)  $<
71
72$(BUILDDIR):
73  @$(MKDIR_P) $@
74
75$(TOPBUILDDIR):
76  @$(MKDIR_P) $@
77
78BaseCoreAPI:
79  $(MKDIR_P) $@
80  ( cd $@ ; \
81    wget $(BASE2CoreURL)/BASE2Core.jar ; \
82    wget $(BASE2CoreURL)/BASE2CorePlugins.jar )
83
84$(PLUGINutilities): $(PLUGINutilities).tgz
85  $(AMTAR) zxpf $<
86
87$(PLUGINutilities).tgz:
88  wget -O $@ $(PLUGINutilitiesURL)
Note: See TracBrowser for help on using the repository browser.