From e284a43dfd65c94c88eebaf1883f687ca6b4b4ee Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Sat, 10 Sep 2005 05:26:58 +0000 Subject: add an RPMOPT to be able to pass args to rpm easily. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0dd5982..903d0c3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ ############################################################################# +# Project : Mandriva Linux # File : Makefile # Package : rpm-helper # Author : Frederic Lepied @@ -24,6 +25,8 @@ RPMACROSDIR=/etc/rpm/macros.d MACROFILEIN = $(PACKAGE).macros.in MACROFILE = $(MACROFILEIN:.in=) +RPMOPT = --clean --rmsource --rmspec + all: @echo "done" @@ -63,10 +66,10 @@ tar: rm -rf $(PACKAGE)-$(VERSION) buildrpm: - rpm -ta $(PACKAGE)-$(VERSION).tar.bz2 + rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2 buildsrpm: - rpm -ts $(PACKAGE)-$(VERSION).tar.bz2 + rpm -ts $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2 # rules to build a distributable rpm -- cgit v1.2.1