From f54528f64f00efdf6729b53405b87a143ea033b9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 22 Jul 2012 20:09:37 +0200 Subject: [PATCH 1/1] Allow to specify build dir via make O=. --- Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2