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 | |
---|
23 | TOPBUILDDIR = .build |
---|
24 | SUBDIR = se/lu/thep/wenni |
---|
25 | BUILDDIR = $(TOPBUILDDIR)/$(SUBDIR) |
---|
26 | |
---|
27 | JAVA = WeNNI.java |
---|
28 | CLASS = $(JAVA:.java=.class) |
---|
29 | JAR = WeNNI.jar |
---|
30 | |
---|
31 | |
---|
32 | all-local: $(JAR) |
---|
33 | |
---|
34 | clean-local:; @( rm -rf *.jar *.class *~ $(TOPBUILDDIR)) |
---|
35 | |
---|
36 | |
---|
37 | install-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 | |
---|