Discussion:
[LIBREPORT PATCH] make the build in the the build directory to not pollute the source tree
Jiri Moskovcak
2013-08-30 10:09:48 UTC
Permalink
- it's easier andsafer to gitignore it if it's separated in directory

Signed-off-by: Jiri Moskovcak <jmoskovc-H+wXaHxf7aLQT0dZR+***@public.gmane.org>
---
.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
Michal Toman
2013-08-30 12:05:13 UTC
Permalink
pushed, thanks
Post by Jiri Moskovcak
- it's easier andsafer to gitignore it if it's separated in directory
---
.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"
./gen-version
Loading...