From: Andre Noll Date: Sun, 22 Jul 2012 18:09:37 +0000 (+0200) Subject: Allow to specify build dir via make O=. X-Git-Tag: v0.4.12~29 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f54528f64f00efdf6729b53405b87a143ea033b9;p=paraslash.git Allow to specify build dir via make O=. --- diff --git a/Makefile.in b/Makefile.in index 52058012..39c938ca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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