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

Last change on this file since 837 was 837, checked in by Peter Johansson, 13 years ago

removing annoying Automake warning that %-style pattern rules are a GNU make extension - also reintroducing PROGRAM_SED in configure.ac because sed is used in base/base2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 837 2008-11-28 19:12:47Z peter $
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  @$(NORMAL_INSTALL)
39  test -z "$(bindir)" || $(MKDIR_P) "$(bindir)"
40  $(INSTALL) "$(JAR)" "$(bindir)"
41
42$(JAR): $(BUILDDIR) $(CLASS)
43  @echo Creating $(JAR)
44  @(cd $(TOPBUILDDIR) ; \
45    jar cf ../$(JAR) $(SUBDIR)/*.class)
46
47$(BUILDDIR)/$(JAVA): $(srcdir)/$(JAVA) Makefile
48  @$(SED) "s/MAKESUBSTOFVERSIONNUMBER/$(VERSION)/" $< > $@
49
50$(CLASS): $(BUILDDIR)/$(JAVA)
51  javac -cp $(JAVACFLAGS):$(TOPBUILDDIR)  $<
52
53$(BUILDDIR):
54  @$(MKDIR_P) $@
55
Note: See TracBrowser for help on using the repository browser.