[LIBREPORT PATCH] make the build in the the build directory to not pollute the source tree

Jiri Moskovcak jmoskovc at redhat.com
Fri Aug 30 10:09:48 UTC 2013


- it's easier andsafer to gitignore it if it's separated in directory

Signed-off-by: Jiri Moskovcak <jmoskovc at redhat.com>
---
 .gitignore  | 2 +-
 Makefile.am | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index cc9ef53..bbcb18a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -95,7 +95,7 @@ libreport-version
 apidoc/html/*
 !apidoc/html/Makefile.am
 
-x86_64/*
+build/*
 *.rpm
 *.gz
 *.patch
diff --git a/Makefile.am b/Makefile.am
index d108dbb..0a350e9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,10 +11,10 @@ pkgconfig_DATA = libreport.pc
 pkgconfig_DATA += libreport-web.pc
 
 RPM_DIRS = --define "_sourcedir `pwd`" \
-	   --define "_rpmdir `pwd`" \
+	   --define "_rpmdir `pwd`/build" \
 	   --define "_specdir `pwd`" \
-	   --define "_builddir `pwd`" \
-	   --define "_srcrpmdir `pwd`"
+	   --define "_builddir `pwd`/build" \
+	   --define "_srcrpmdir `pwd`/build"
 
 rpm:
 	./gen-version
-- 
1.8.3.1



More information about the Crash-catcher mailing list