Skip to content

Commit

Permalink
Added special make targets to allow builds without installing them.
Browse files Browse the repository at this point in the history
Just call: $ make {install,tests,check-examples,run-testsuite}-local-build clean-local-build
  • Loading branch information
Thoralf Klein committed Jul 25, 2013
1 parent 74263b9 commit 9fe7d6b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Makefile
Expand Up @@ -83,6 +83,16 @@ 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-build:
$(MAKE) DESTDIR="$(shell readlink -f ".")"/"$(LOCAL_BUILD_DIR)" install
clean-local-build:
@rm -rf "$(LOCAL_BUILD_DIR)"

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

doc: $(PARTDEPS)
+$(foreach part, $(PARTS), $(MAKE) -C interfaces/$(part) doc-$(part) &&) true
tutorial:
Expand All @@ -99,6 +109,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

dist: distclean
rm -f $(TAR).gz
Expand Down

0 comments on commit 9fe7d6b

Please sign in to comment.