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

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

Fixes #146.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 825 2008-11-26 22:42:17Z 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
36
37install-exec-local: $(JAR)
38  @install -d @bindir@
39  install -p $(JAR) @bindir@
40
41$(JAR): $(BUILDDIR) $(CLASS)
42  @echo Creating $(JAR)
43  @(cd $(TOPBUILDDIR) ; \
44    jar cf ../$(JAR) $(SUBDIR)/*.class)
45
46$(BUILDDIR)/%.java: %.java Makefile
47  @sed "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
48
49%.class: $(BUILDDIR)/%.java
50  javac -cp $(JAVACFLAGS):$(TOPBUILDDIR)  $<
51
52$(BUILDDIR):
53  @install -d $@
54
Note: See TracBrowser for help on using the repository browser.