~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Examples/test-suite/java/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-11-10 16:29:56 UTC
  • mfrom: (1.2.8 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20081110162956-xue6itkuqhbza87s
Tags: 1.3.36-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop pike and libchicken-dev from the build-depends 
    (both are universe)
  - Use python2.5 instead of python2.4.
  - use php5
  - Clean Runtime/ as well.
  - debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.
  - drop "--without-mzscheme", we don't have it in our build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#######################################################################
4
4
 
5
5
LANGUAGE     = java
 
6
JAVA         = java
 
7
JAVAC        = javac
6
8
SCRIPTSUFFIX = _runme.java
7
9
srcdir       = @srcdir@
8
10
top_srcdir   = @top_srcdir@/..
55
57
# Makes a directory for the testcase if it does not exist
56
58
setup = \
57
59
        if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then        \
58
 
          echo "Checking testcase $* (with run test) under $(LANGUAGE)" ; \
 
60
          echo "$(ACTION)ing testcase $* (with run test) under $(LANGUAGE)" ; \
59
61
        else                                                              \
60
 
          echo "Checking testcase $* under $(LANGUAGE)" ;                 \
 
62
          echo "$(ACTION)ing testcase $* under $(LANGUAGE)" ;             \
61
63
        fi;                                                               \
62
64
        if [ ! -d $* ]; then                                              \
63
65
                mkdir $*;                                                 \
67
69
# a file is found which has _runme.java appended after the testcase name.
68
70
# Note Java uses LD_LIBRARY_PATH under Unix, PATH under Cygwin/Windows, SHLIB_PATH on HPUX and DYLD_LIBRARY_PATH on Mac OS X.
69
71
run_testcase = \
70
 
        (cd $* && javac -classpath . *.java) && \
 
72
        (cd $* && $(COMPILETOOL) $(JAVAC) -classpath . *.java) && \
71
73
        if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then (      \
72
 
          javac -classpath . -d . $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) &&           \
73
 
          env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" DYLD_LIBRARY_PATH="$*:$$DYLD_LIBRARY_PATH" java -classpath . $*\_runme;) \
 
74
          $(COMPILETOOL) $(JAVAC) -classpath . -d . $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) &&         \
 
75
          env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" DYLD_LIBRARY_PATH="$*:$$DYLD_LIBRARY_PATH" $(RUNTOOL) $(JAVA) -classpath . $*\_runme;) \
74
76
        fi;
75
77
 
76
78
# Clean: remove testcase directories