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

Last change on this file since 865 was 865, checked in by Peter Johansson, 14 years ago

adding uninstall targets in base2. Should probably be added in other dirs as well.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 865 2008-12-03 17:33:56Z 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
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)
31WeNNI  = WeNNI.jar
32
33if DOWNLOADBASEAPI
34DOWNLOADDEP=BaseCoreAPI
35endif
36
37all-local: $(WeNNI)
38
39clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR))
40
41distclean-local: clean-local
42  @( rm -rf $(DOWNLOADDEP) $(PLUGINutilities) $(PLUGINutilities).tgz )
43
44install-exec-local: $(WeNNI)
45  @$(NORMAL_INSTALL)
46  test -z "$(bindir)" || $(MKDIR_P) "$(bindir)"
47  $(INSTALL) "$(WeNNI)" "$(bindir)"
48  $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(bindir)"
49
50uninstall-local:
51  @$(NORMAL_UNINSTALL)
52  rm -f "$(bindir)/$(WeNNI)"
53  rm -f "$(bindir)/$(PLUGINutilities).jar"
54
55install-plugin: $(WeNNI)
56  @$(NORMAL_INSTALL)
57  test -z "$(PLUGINDIR)" || $(MKDIR_P) "$(PLUGINDIR)"
58  $(INSTALL) "$(WeNNI)" "$(PLUGINDIR)"
59  $(INSTALL) "$(PLUGINutilities)/$(PLUGINutilities).jar" "$(PLUGINDIR)"
60
61uninstall-plugin:
62  @$(NORMAL_UNINSTALL)
63  rm -f "$(PLUGINDIR)/$(WeNNI)"
64  rm -f "$(PLUGINDIR)/$(PLUGINutilities).jar"
65
66$(WeNNI): $(BUILDDIR) $(PLUGINutilities) $(DOWNLOADDEP) $(CLASS) manifest
67  @echo Creating $(WeNNI)
68  @(cd $(TOPBUILDDIR) ; $(JAR) cf ../$(WeNNI) .)
69
70manifest: $(TOPBUILDDIR)
71  @$(MKDIR_P) $(TOPBUILDDIR)/META-INF
72  @echo "Manifest-Version: 1.0" > "$(MANIFEST_FILE)"
73  @echo "Class-Path: $(PLUGINutilities).jar" >> $(MANIFEST_FILE)
74
75$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile
76  @$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
77
78$(CLASS): $(BUILDDIR)/$(JAVA)
79  $(JAVAC) -cp $(JAVACFLAGS):$(TOPBUILDDIR)  $<
80
81$(BUILDDIR):
82  @$(MKDIR_P) $@
83
84$(TOPBUILDDIR):
85  @$(MKDIR_P) $@
86
87BaseCoreAPI:
88  $(MKDIR_P) $@
89  ( cd $@ ; \
90    wget $(BASE2CoreURL)/BASE2Core.jar ; \
91    wget $(BASE2CoreURL)/BASE2CorePlugins.jar )
92
93$(PLUGINutilities): $(PLUGINutilities).tgz
94  tar zxpf $<
95
96$(PLUGINutilities).tgz:
97  wget -O $@ $(PLUGINutilitiesURL)
Note: See TracBrowser for help on using the repository browser.