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

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

WeNNI.java should be included in dist

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 905 2008-12-08 20:31:09Z 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 = $(BUILDDIR)/$(JAVA:.java=.class)
33WeNNI  = WeNNI.jar
34EXTRAjars = $(PLUGINutilities)/$(PLUGINutilities).jar
35inst_JARS = $(WeNNI) $(EXTRAjars)
36
37EXTRA_DIST = $(JAVA)
38
39if DOWNLOADBASEAPI
40DOWNLOADDEP=$(builddir)/BaseCoreAPI
41endif
42
43all-local: $(WeNNI)
44
45clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR) $(MANIFEST_FILE) )
46
47distclean-local: clean-local
48  @( rm -rf $(DOWNLOADDEP) $(PLUGINutilities) $(PLUGINutilities).tgz )
49
50install-exec-local: $(inst_JARS)
51  @$(NORMAL_INSTALL)
52  test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
53  @list='$(inst_JARS)'; for p in $$list; do \
54    if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
55    if test -f $$d$$p; then \
56      f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
57      echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
58      $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
59    else :; fi; \
60  done
61
62uninstall-local:
63  @$(NORMAL_UNINSTALL)
64  @list='$(inst_JARS)'; for p in $$list; do \
65    f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
66    echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
67    rm -f "$(DESTDIR)$(bindir)/$$f"; \
68  done
69
70$(WeNNI): $(BUILDDIR) $(PLUGINutilities) $(DOWNLOADDEP) $(CLASS) $(MANIFEST_FILE)
71  @echo Creating $(WeNNI)
72  @(cd $(TOPBUILDDIR) ; $(JAR) cmf ../$(MANIFEST_FILE) ../$(WeNNI) .)
73
74$(MANIFEST_FILE): Makefile
75  @echo "Manifest-Version: 1.0" > "$(MANIFEST_FILE)"
76  @echo "Class-Path: $(PLUGINutilities).jar" >> $(MANIFEST_FILE)
77
78$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile
79  @$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
80
81$(CLASS): $(BUILDDIR)/$(JAVA)
82  $(JAVAC) $(JAVACFLAGS) -cp $(JAVACCLASSPATH):$(TOPBUILDDIR)  $<
83
84$(BUILDDIR):
85  @$(MKDIR_P) $@
86
87$(TOPBUILDDIR):
88  @$(MKDIR_P) $@
89
90$(builddir)/BaseCoreAPI:
91  $(MKDIR_P) $@
92  ( cd $@ ; \
93    wget $(BASE2CoreURL)/BASE2Core.jar ; \
94    wget $(BASE2CoreURL)/BASE2CorePlugins.jar )
95
96$(PLUGINutilities): $(PLUGINutilities).tgz
97  $(AMTAR) zxf $<
98
99$(PLUGINutilities).tgz:
100  wget -O $@ $(PLUGINutilitiesURL)
Note: See TracBrowser for help on using the repository browser.