Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes to build scripts #1306

Merged
merged 2 commits into from
Jul 25, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ configure.log
/src/examples
/src/shogun/.clang_complete
/src/configure-*-*.c*

/src/build-local

# static interfaces
/src/interfaces/cmdline_static/shogun
Expand Down
14 changes: 7 additions & 7 deletions examples/undocumented/libshogun/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TARGETS = basic_minimal \
classifier_libsvm_probabilities\
classifier_minimal_svm \
classifier_mklmulticlass \
classifier_conjugateindex \
classifier_conjugateindex \
classifier_gaussiannaivebayes \
classifier_multiclasslibsvm \
classifier_qda \
Expand All @@ -46,15 +46,15 @@ TARGETS = basic_minimal \
regression_gaussian_process_product \
regression_gaussian_process_ard \
regression_gaussian_process_laplace \
regression_gaussian_process_simple_exact \
regression_gaussian_process_simple_exact \
modelselection_model_selection_parameters_test \
modelselection_parameter_tree \
modelselection_apply_parameter_tree \
modelselection_grid_search_linear features_subset_labels \
modelselection_grid_search_kernel \
modelselection_grid_search_string_kernel \
modelselection_grid_search_multiclass_svm \
modelselection_combined_kernel_sub_parameters \
modelselection_combined_kernel_sub_parameters \
features_dense_real_modular \
features_subset_stack \
features_subset_simple_features \
Expand Down Expand Up @@ -107,10 +107,10 @@ TARGETS = basic_minimal \
library_hdf5 \
library_serialization \
classifier_svmlight_string_features_precomputed_kernel \
classifier_mkl_svmlight_modelselection_bug \
base_migration_new_buggy \
regression_libsvr \
classifier_multiclass_prob_heuristics \
classifier_mkl_svmlight_modelselection_bug \
base_migration_new_buggy \
regression_libsvr \
classifier_multiclass_prob_heuristics \
streaming_onlineliblinear \
io_linereader \
library_circularbuffer \
Expand Down
4 changes: 2 additions & 2 deletions examples/undocumented/libshogun/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ do
else
echo " ERROR"
echo "================================================================================" >>error.log
echo "error in $MAKE $e $CC $LIBRARY_PATH $LIB_PATH $INC_PATH $LIBS" >>error.log
echo "error in $MAKE $e $CC $LIBRARY_PATH $LIB_PATH $INC_PATH $LIBS $INCLUDES" >>error.log
echo "error in ./$e" >>error.log 2>&1
echo "================================================================================" >>error.log
$MAKE "$e" "$CC" "$LIBRARY_PATH" "$LIB_PATH" "$INC_PATH" "$LIBS" >>error.log 2>&1 && $GDB $GDBOPTS "./$e" >>error.log
$MAKE "$e" "$CC" "$LIBRARY_PATH" "$LIB_PATH" "$INC_PATH" "$LIBS" "$INCLUDES" >>error.log 2>&1 && $GDB $GDBOPTS "./$e" >>error.log
echo "================================================================================" >>error.log
echo >>error.log
echo >>error.log
Expand Down
15 changes: 7 additions & 8 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@ check-examples: $(PARTDEPS)
$(MAKE) -C shogun check-examples
+$(foreach part, $(PARTS), $(MAKE) -C interfaces/$(part) check-examples-$(part) &&) true

LOCAL_BUILD_DIR="local-build-tmp"
install-local:
$(MAKE) DESTDIR="$(shell readlink -f .)"/build-local install

install-local-build:
$(MAKE) DESTDIR="$(shell readlink -f ".")"/"$(LOCAL_BUILD_DIR)" install
clean-local-build:
@rm -rf "$(LOCAL_BUILD_DIR)"
clean-local:
@rm -rf build-local

%-local-build: install-local-build
$(MAKE) DESTDIR="$(shell readlink -f ".")"/"$(LOCAL_BUILD_DIR)" $*
%-local: install-local
$(MAKE) DESTDIR="$(shell readlink -f .)"/build-local $*

doc: $(PARTDEPS)
+$(foreach part, $(PARTS), $(MAKE) -C interfaces/$(part) doc-$(part) &&) true
Expand All @@ -109,7 +108,7 @@ clean: $(PARTDEPS)
@+$(foreach part, $(PARTS), $(MAKE) -C interfaces/$(part) $@ &&) true
@rm -rf configure-*.dSYM
@rm -f configure.log .cpuinfo .cpuinfo.c ./configure-* cplex.log examples
$(MAKE) clean-local-build
$(MAKE) clean-local

dist: distclean
rm -f $(TAR).gz
Expand Down
20 changes: 6 additions & 14 deletions src/Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ install-cmdline_static: $(TEMPLATE_TARGET)
install -d -m755 $(DESTDIR)$(BINDIR)
install -m755 $(TEMPLATE_TARGET) $(DESTDIR)$(BINDIR)

install-libshogun: $(TEMPLATE_TARGET)
install-libshogun: $(TEMPLATE_TARGET) $(TEMPLATE_STATIC)
install -d -m755 $(DESTDIR)$(LIBDIR)
install -d -m755 "$(DESTDIR)$(INCDIR)/shogun"
install -m755 $(TEMPLATE_TARGET) $(DESTDIR)$(LIBDIR)
Expand Down Expand Up @@ -356,7 +356,6 @@ run-testsuite-python_static:
cd $(CONFIGPATH)/../tests/integration/python_static && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PYTHON=$(PYTHON) \
PYTHONPATH="$(DESTDIR)$(PYDIR)" ./test_all.sh )

check-examples-python_static:
cd $(CONFIGPATH)/../examples/undocumented/python_static && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PYTHON=$(PYTHON) \
Expand Down Expand Up @@ -394,7 +393,6 @@ run-testsuite-matlab_static:
cd $(CONFIGPATH)/../tests/integration/matlab_static && \
( ln -sf $(CONFIGPATH)/../src/matlab/$(TEMPLATE_TARGET) ; \
$(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) ./test_all.sh - matlab)

check-examples-matlab_static:
cd $(CONFIGPATH)/../examples/undocumented/matlab_static && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
Expand All @@ -407,6 +405,11 @@ run-testsuite-python_modular:
cd $(CONFIGPATH)/../tests/integration/python_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
PYTHONPATH="$(DESTDIR)$(PYDIR)" $(PYTHON) tester.py )
check-examples-python_modular:
cd $(CONFIGPATH)/../examples/undocumented/python_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PYTHON=$(PYTHON) \
GDB="gdb -x ../../../src/.gdb --args" \
PYTHONPATH="$(DESTDIR)$(PYDIR)" ./check.sh )

run-testsuite-perl_modular:
cd $(CONFIGPATH)/../tests/integration/perl_modular && (\
Expand All @@ -417,28 +420,19 @@ run-testsuite-perl_modular:
$(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PERLPATH="$(DESTDIR)$(PLDIR)" \
$(LIBRARY_PATH)="/usr/src/shogun/src/interfaces/perl_modular:/usr/src/shogun/src/shogun" \
./tester.pl)

check-examples-python_modular:
cd $(CONFIGPATH)/../examples/undocumented/python_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PYTHON=$(PYTHON) \
GDB="gdb -x ../../../src/.gdb --args" \
PYTHONPATH="$(DESTDIR)$(PYDIR)" ./check.sh )

check-examples-perl_modular:
cd $(CONFIGPATH)/../examples/undocumented/perl_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) PERL=$(PERL) \
PERLPATH="$(DESTDIR)$(PLDIR)" ./check.sh )

run-testsuite-java_modular:
#TODO

check-examples-java_modular:
cd $(CONFIGPATH)/../examples/undocumented/java_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) ./check.sh )

run-testsuite-csharp_modular:
#TODO

check-examples-csharp_modular:
cd $(CONFIGPATH)/../examples/undocumented/csharp_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) ./check.sh )
Expand All @@ -463,15 +457,13 @@ check-examples-octave_modular:

run-testsuite-lua_modular:
#TODO

check-examples-lua_modular:
cd $(CONFIGPATH)/../examples/undocumented/lua_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
LUA_CPATH="$(DESTDIR)$(LUA_EXTENSIONS_INSTALL_DIR)/?.so" ./check.sh )

run-testsuite-ruby_modular:
#TODO

check-examples-ruby_modular:
cd $(CONFIGPATH)/../examples/undocumented/ruby_modular && \
( $(LIBRARY_PATH)=$(DESTDIR)$(LIBDIR) \
Expand Down