You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 10:46:47 UTC
svn commit: r1132119 - in /incubator/mesos/trunk: configure configure.ac
src/examples/Makefile.in src/examples/java/Makefile.in
src/examples/python/Makefile.in
Author: benh
Date: Sun Jun 5 08:46:47 2011
New Revision: 1132119
URL: http://svn.apache.org/viewvc?rev=1132119&view=rev
Log:
Created separate Makefiles for the Java and Python examples so that they
only get built when the appropriate flags are passed to configure (see
GitHub issue #113).
Added:
incubator/mesos/trunk/src/examples/java/Makefile.in
incubator/mesos/trunk/src/examples/python/Makefile.in
Modified:
incubator/mesos/trunk/configure
incubator/mesos/trunk/configure.ac
incubator/mesos/trunk/src/examples/Makefile.in
Modified: incubator/mesos/trunk/configure
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/configure?rev=1132119&r1=1132118&r2=1132119&view=diff
==============================================================================
--- incubator/mesos/trunk/configure (original)
+++ incubator/mesos/trunk/configure Sun Jun 5 08:46:47 2011
@@ -1,10 +1,12 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.64.
+# Generated by GNU Autoconf 2.65.
+#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
-# Foundation, Inc.
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
@@ -523,7 +525,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-exec 7<&0 </dev/null 6>&1
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
@@ -649,8 +652,8 @@ CCC
CC
CFLAGS'
ac_subdirs_all='third_party/libprocess
+third_party/gtest-1.5.0
third_party/glog-0.3.1
-third_party/gmock-1.5.0
third_party/zookeeper-3.3.1/src/c'
# Initialize some variables set by options.
@@ -1278,7 +1281,7 @@ Some influential environment variables:
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CC C compiler command
CFLAGS C compiler flags
@@ -1350,7 +1353,7 @@ test -n "$ac_init_help" && exit $ac_stat
if $ac_init_version; then
cat <<\_ACEOF
configure
-generated by GNU Autoconf 2.64
+generated by GNU Autoconf 2.65
Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
@@ -1397,7 +1400,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
- return $ac_retval
+ as_fn_set_status $ac_retval
} # ac_fn_cxx_try_compile
@@ -1435,7 +1438,7 @@ sed 's/^/| /' conftest.$ac_ext >&5
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
- return $ac_retval
+ as_fn_set_status $ac_retval
} # ac_fn_c_try_compile
cat >config.log <<_ACEOF
@@ -1443,7 +1446,7 @@ This file contains any messages produced
running configure, to aid debugging if configure makes a mistake.
It was created by $as_me, which was
-generated by GNU Autoconf 2.64. Invocation command line was
+generated by GNU Autoconf 2.65. Invocation command line was
$ $0 $@
@@ -1696,7 +1699,7 @@ fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
test "x$ac_site_file" = xNONE && continue
- if test -r "$ac_site_file"; then
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
@@ -1705,9 +1708,9 @@ $as_echo "$as_me: loading site script $a
done
if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special
- # files actually), so we avoid doing that.
- if test -f "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
@@ -1808,7 +1811,7 @@ ac_configure_args=`echo $ac_configure_ar
sed -e "s/CXXFLAGS=/CXXFLAGS=-O2 -fno-strict-aliasing /"`
ac_configure_args="$ac_configure_args --enable-shared=no --with-pic"
-ac_config_files="$ac_config_files Makefile src/Makefile src/examples/Makefile src/tests/Makefile src/config/config.hpp"
+ac_config_files="$ac_config_files Makefile src/Makefile src/examples/Makefile src/examples/java/Makefile src/examples/python/Makefile src/tests/Makefile src/config/config.hpp"
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
@@ -1837,9 +1840,9 @@ ac_configure="$SHELL $ac_aux_dir/configu
subdirs="$subdirs third_party/libprocess"
-subdirs="$subdirs third_party/glog-0.3.1"
+subdirs="$subdirs third_party/gtest-1.5.0"
-subdirs="$subdirs third_party/gmock-1.5.0"
+subdirs="$subdirs third_party/glog-0.3.1"
subdirs="$subdirs third_party/zookeeper-3.3.1/src/c"
@@ -2238,32 +2241,30 @@ $as_echo "$ac_try_echo"; } >&5
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
- rm -f conftest.er1 conftest.err
fi
+ rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <stdio.h>
+
int
main ()
{
-FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
-$as_echo_n "checking for C++ compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
+$as_echo_n "checking whether the C++ compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
# The possible output files:
@@ -2325,10 +2326,10 @@ test "$ac_cv_exeext" = no && ac_cv_exeex
else
ac_file=''
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
-$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then :
- $as_echo "$as_me: failed program was:" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
@@ -2336,51 +2337,18 @@ $as_echo "$as_me: error: in \`$ac_pwd':"
{ as_fn_set_status 77
as_fn_error "C++ compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
+$as_echo_n "checking for C++ compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
-$as_echo_n "checking whether the C++ compiler works... " >&6; }
-# If not cross compiling, check that we can run a simple program.
-if test "$cross_compiling" != yes; then
- if { ac_try='./$ac_file'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
-$as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
-as_fn_error "cannot run C++ compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." "$LINENO" 5; }
- fi
- fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
-# Check that the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
-$as_echo_n "checking whether we are cross compiling... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
-$as_echo "$cross_compiling" >&6; }
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
@@ -2413,13 +2381,72 @@ $as_echo "$as_me: error: in \`$ac_pwd':"
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
-rm -f conftest$ac_cv_exeext
+rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error "cannot run C++ compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." "$LINENO" 5; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
@@ -2722,8 +2749,8 @@ $as_echo "$ac_try_echo"; } >&5
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
- rm -f conftest.er1 conftest.err
fi
+ rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
@@ -3483,7 +3510,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
# values after options handling.
ac_log="
This file was extended by $as_me, which was
-generated by GNU Autoconf 2.64. Invocation command line was
+generated by GNU Autoconf 2.65. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
@@ -3518,6 +3545,7 @@ Usage: $0 [OPTION]... [TAG]...
-h, --help print this help, then exit
-V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
-q, --quiet, --silent
do not print progress messages
-d, --debug don't remove temporary files
@@ -3532,10 +3560,11 @@ Report bugs to the package provider."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
config.status
-configured by $0, generated by GNU Autoconf 2.64,
- with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+configured by $0, generated by GNU Autoconf 2.65,
+ with options \\"\$ac_cs_config\\"
Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
@@ -3570,6 +3599,8 @@ do
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
@@ -3638,6 +3669,8 @@ do
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
"src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
+ "src/examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/java/Makefile" ;;
+ "src/examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/python/Makefile" ;;
"src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
"src/config/config.hpp") CONFIG_FILES="$CONFIG_FILES src/config/config.hpp" ;;
@@ -3741,7 +3774,7 @@ s/'"$ac_delim"'$//
t delim
:nl
h
-s/\(.\{148\}\).*/\1/
+s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
@@ -3755,7 +3788,7 @@ s/.\{148\}//
t nl
:delim
h
-s/\(.\{148\}\).*/\1/
+s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
Modified: incubator/mesos/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/configure.ac?rev=1132119&r1=1132118&r2=1132119&view=diff
==============================================================================
--- incubator/mesos/trunk/configure.ac (original)
+++ incubator/mesos/trunk/configure.ac Sun Jun 5 08:46:47 2011
@@ -22,7 +22,13 @@ ac_configure_args=`echo $ac_configure_ar
sed -e "s/CXXFLAGS=/CXXFLAGS=-O2 -fno-strict-aliasing /"`
ac_configure_args="$ac_configure_args --enable-shared=no --with-pic"
-AC_CONFIG_FILES([Makefile src/Makefile src/examples/Makefile src/tests/Makefile src/config/config.hpp])
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ src/examples/Makefile
+ src/examples/java/Makefile
+ src/examples/python/Makefile
+ src/tests/Makefile
+ src/config/config.hpp])
AC_CONFIG_SUBDIRS([third_party/libprocess])
AC_CONFIG_SUBDIRS([third_party/glog-0.3.1])
AC_CONFIG_SUBDIRS([third_party/gmock-1.5.0])
Modified: incubator/mesos/trunk/src/examples/Makefile.in
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/examples/Makefile.in?rev=1132119&r1=1132118&r2=1132119&view=diff
==============================================================================
--- incubator/mesos/trunk/src/examples/Makefile.in (original)
+++ incubator/mesos/trunk/src/examples/Makefile.in Sun Jun 5 08:46:47 2011
@@ -102,33 +102,9 @@ EXAMPLES_EXES = $(SCHED_EXES) $(EXEC_EXE
MESOS_SCHED_LIB = $(LIBDIR)/libmesos_sched.a
MESOS_EXEC_LIB = $(LIBDIR)/libmesos_exec.a
-JAVA_CLASSES = $(BINDIR)/examples/java/TestFramework.class \
- $(BINDIR)/examples/java/TestExecutor.class \
- $(BINDIR)/examples/java/TestExceptionFramework.class
-
-JAVA_SCRIPTS = $(BINDIR)/examples/java/test_framework \
- $(BINDIR)/examples/java/test_executor \
- $(BINDIR)/examples/java/test_exception_framework
-
-JAVA = $(JAVA_CLASSES) $(JAVA_SCRIPTS)
-
-MESOS_JAVA_JAR = $(LIBDIR)/java/mesos.jar
-
-PYTHON_SCRIPTS = $(BINDIR)/examples/python/test_framework.py \
- $(BINDIR)/examples/python/test_framework \
- $(BINDIR)/examples/python/test_executor.py \
- $(BINDIR)/examples/python/test_executor \
-
-PYTHON = $(PYTHON_SCRIPTS)
-
-MESOS_PYTHON_LIB = $(LIBDIR)/python/_mesos.so
-
# Create rules for building the directories that aren't created
# automagically by configure.
-DIRECTORIES = $(BINDIR)/examples \
- $(BINDIR)/examples/java \
- $(BINDIR)/examples/python
-
+DIRECTORIES = $(BINDIR)/examples
default: all
@@ -160,36 +136,28 @@ $(BINDIR)/examples/memhog-executor: @src
$(BINDIR)/examples/scheduled-memhog: @srcdir@/scheduled_memhog.cpp $(MESOS_SCHED_LIB)
$(CXX) $(CXXFLAGS) -o $@ $< $(MESOS_SCHED_LIB) $(LDFLAGS) $(LIBS)
-$(JAVA): | $(BINDIR)/examples/java
-
-$(JAVA_CLASSES): $(MESOS_JAVA_JAR)
-
-$(JAVA_CLASSES): $(BINDIR)/examples/java/%.class: @srcdir@/java/%.java
+java:
ifdef JAVA_HOME
- $(JAVA_HOME)/bin/javac -cp $(MESOS_JAVA_JAR):@srcdir@/java -sourcepath @srcdir@/java -d $(BINDIR)/examples/java $<
+ $(MAKE) -C java
endif
-$(JAVA_SCRIPTS): $(BINDIR)/examples/java/%: @srcdir@/java/%
-ifdef JAVA_HOME
- cp -r $< $@
-endif
-
-$(PYTHON): | $(BINDIR)/examples/python
-
-$(PYTHON_SCRIPTS): $(MESOS_PYTHON_LIB)
-
-$(PYTHON_SCRIPTS): $(BINDIR)/examples/python/%: @srcdir@/python/%
+python:
ifdef PYTHON_HEADERS
- cp -r $< $@
+ $(MAKE) -C python
endif
-all: $(EXAMPLES_EXES) $(JAVA) $(PYTHON)
+all: $(EXAMPLES_EXES) java python
clean:
rm -f $(patsubst %, %.d, $(EXAMPLES_EXES))
rm -rf $(patsubst %, %.dSYM, $(EXAMPLES_EXES))
rm -f $(EXAMPLES_EXES)
- rm -f $(JAVA) $(PYTHON)
rm -f TAGS
+ifdef JAVA_HOME
+ $(MAKE) -C java clean
+endif
+ifdef PYTHON_HEADERS
+ $(MAKE) -C python clean
+endif
-.PHONY: default all clean
+.PHONY: default all clean java python
Added: incubator/mesos/trunk/src/examples/java/Makefile.in
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/examples/java/Makefile.in?rev=1132119&view=auto
==============================================================================
--- incubator/mesos/trunk/src/examples/java/Makefile.in (added)
+++ incubator/mesos/trunk/src/examples/java/Makefile.in Sun Jun 5 08:46:47 2011
@@ -0,0 +1,44 @@
+# Makefile.
+
+SHELL = '/bin/sh'
+
+BINDIR = @top_builddir@/bin
+LIBDIR = @top_builddir@/lib
+
+OUTDIR = $(BINDIR)/examples/java
+
+JAVA_HOME = @JAVA_HOME@
+
+JAVA_CLASSES = $(OUTDIR)/TestFramework.class \
+ $(OUTDIR)/TestExecutor.class \
+ $(OUTDIR)/TestExceptionFramework.class
+
+JAVA_SCRIPTS = $(OUTDIR)/test_framework \
+ $(OUTDIR)/test_executor \
+ $(OUTDIR)/test_exception_framework
+
+JAVA = $(JAVA_CLASSES) $(JAVA_SCRIPTS)
+
+MESOS_JAVA_JAR = $(LIBDIR)/java/mesos.jar
+
+default: all
+
+$(OUTDIR):
+ mkdir -p $@
+
+$(JAVA): | $(OUTDIR)
+
+$(JAVA_CLASSES): $(MESOS_JAVA_JAR)
+
+$(JAVA_CLASSES): $(OUTDIR)/%.class: @srcdir@/%.java
+ $(JAVA_HOME)/bin/javac -cp $(MESOS_JAVA_JAR):@srcdir@ -sourcepath @srcdir@ -d $(OUTDIR) $<
+
+$(JAVA_SCRIPTS): $(OUTDIR)/%: @srcdir@/%
+ cp -r $< $@
+
+all: $(JAVA)
+
+clean:
+ rm -f $(JAVA)
+
+.phony: default all clean
Added: incubator/mesos/trunk/src/examples/python/Makefile.in
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/examples/python/Makefile.in?rev=1132119&view=auto
==============================================================================
--- incubator/mesos/trunk/src/examples/python/Makefile.in (added)
+++ incubator/mesos/trunk/src/examples/python/Makefile.in Sun Jun 5 08:46:47 2011
@@ -0,0 +1,36 @@
+# Makefile.
+
+SHELL = '/bin/sh'
+
+BINDIR = @top_builddir@/bin
+LIBDIR = @top_builddir@/lib
+
+OUTDIR = $(BINDIR)/examples/python
+
+PYTHON_SCRIPTS = $(OUTDIR)/test_framework.py \
+ $(OUTDIR)/test_framework \
+ $(OUTDIR)/test_executor.py \
+ $(OUTDIR)/test_executor \
+
+PYTHON = $(PYTHON_SCRIPTS)
+
+MESOS_PYTHON_LIB = $(LIBDIR)/python/_mesos.so
+
+default: all
+
+$(OUTDIR):
+ mkdir -p $@
+
+$(PYTHON): | $(OUTDIR)
+
+$(PYTHON_SCRIPTS): $(MESOS_PYTHON_LIB)
+
+$(PYTHON_SCRIPTS): $(OUTDIR)/%: @srcdir@/%
+ cp -r $< $@
+
+all: $(PYTHON)
+
+clean:
+ rm -f $(PYTHON)
+
+.phony: default all clean