From ac4d64b9c2d9967a59fc01f1cf905fc06e891715 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 26 Jul 2012 04:28:37 +0200 Subject: [PATCH] Makefile: Move generated files to build directory. 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 | 2 +- Makefile.in | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index b5b5befa..9091a9c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -objects +build foo* bar* para_* diff --git a/Makefile.in b/Makefile.in index a99bacc2..52058012 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 -- 2.39.5