]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Allow to specify build dir via make O=<dir>.
authorAndre Noll <maan@systemlinux.org>
Sun, 22 Jul 2012 18:09:37 +0000 (20:09 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:06 +0000 (13:01 +0200)
Makefile.in

index 52058012114c2e47de4c3c23095a0faf013dfa61..39c938caca3829af440901e52d40183bd104c80e 100644 (file)
@@ -24,7 +24,11 @@ GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h)
 
 m4_ggo_dir := m4/gengetopt
 test_dir := t
-build_dir := build
+ifeq ("$(origin O)", "command line")
+       build_dir := $(O)
+else
+       build_dir := build
+endif
 ggo_dir := $(build_dir)/ggo
 object_dir := $(build_dir)/objects
 man_dir := $(build_dir)/man/man1