Makefile: Move generated files to build directory.
authorAndre Noll <maan@systemlinux.org>
Thu, 26 Jul 2012 02:28:37 +0000 (04:28 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:06 +0000 (13:01 +0200)
This instructs the build system to store the generated ggo files,
all objects and depend files, and the man pages in the new "build"
directory.

.gitignore
Makefile.in

index b5b5befa1693fd8678fa6ba10a1bb37495019467..9091a9c28965ffa90a4ea588f1a767b05831eb5c 100644 (file)
@@ -1,4 +1,4 @@
-objects
+build
 foo*
 bar*
 para_*
index a99bacc21329261d2648160397d4dac7d3f92a51..52058012114c2e47de4c3c23095a0faf013dfa61 100644 (file)
@@ -23,11 +23,12 @@ codename := volatile relativity
 GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h)
 
 m4_ggo_dir := m4/gengetopt
-ggo_dir := ggo
-object_dir := objects
-man_dir := man/man1
 test_dir := t
-cmdline_dir := cmdline
+build_dir := build
+ggo_dir := $(build_dir)/ggo
+object_dir := $(build_dir)/objects
+man_dir := $(build_dir)/man/man1
+cmdline_dir := $(build_dir)/cmdline
 
 DEBUG_CPPFLAGS += -g -Wunused -Wundef -W
 DEBUG_CPPFLAGS += -Wredundant-decls