From: Niels Basjes <niels@xxxxxxxxx> Signed-off-by: Niels Basjes <niels@xxxxxxxxx> --- .gitignore | 1 + Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/.gitignore b/.gitignore index 1c57d4c..2f2554b 100644 --- a/.gitignore +++ b/.gitignore @@ -173,3 +173,4 @@ configure tags TAGS cscope* +RPM_BUILDING diff --git a/Makefile b/Makefile index 7867eac..ad5a1f7 100644 --- a/Makefile +++ b/Makefile @@ -242,7 +242,13 @@ RM = rm -f TAR = tar FIND = find INSTALL = install -RPMBUILD = rpmbuild +RPMBUILDOPTS = $(shell if [ "`grep '^%_topdir' $(HOME)/.rpmmacros`" == "" ]; \ + then \ + mkdir -p RPM_BUILDING/{BUILD,RPMS,SOURCES,SPECS,SRPMS}; \ + echo '--define="_topdir `pwd`/RPM_BUILDING"' ; \ + fi \ + ) +RPMBUILD = rpmbuild $(RPMBUILDOPTS) TCL_PATH = tclsh TCLTK_PATH = wish PTHREAD_LIBS = -lpthread -- 1.6.1.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html