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

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

installing jars with chmod 644

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