diff options
author | Nate Straz <nstraz@redhat.com> | 2007-01-31 21:12:03 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | 233d32177ee26bf3b81253dc20a6492efc6d2e2c (patch) | |
tree | 21c314cba267f645075ef4edf5836107dab10dfb /Makefile | |
parent | b7b39e220d2fc6745524eae38e22d0e12e8d4ec6 (diff) | |
download | qarsh-233d32177ee26bf3b81253dc20a6492efc6d2e2c.tar.gz qarsh-233d32177ee26bf3b81253dc20a6492efc6d2e2c.tar.xz qarsh-233d32177ee26bf3b81253dc20a6492efc6d2e2c.zip |
Add the ability to tag builds for different distros. Just create the
source rpm with "make srpm DIST=.el5" and build it with brew.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -29,6 +29,11 @@ clean: $(RM) $(TARGETS) VERSION := $(shell awk '/^Version:/ { print $$2 }' qarsh.spec) + +ifdef DIST + RPMDEFS := -D "dist $(DIST)" +endif + qarsh-$(VERSION).tar.bz2: qarsh.spec -rm $@ tar cjf $@ . @@ -36,10 +41,10 @@ qarsh-$(VERSION).tar.bz2: qarsh.spec tarball: qarsh-$(VERSION).tar.bz2 rpm: qarsh-$(VERSION).tar.bz2 qarsh.spec - rpmbuild -ta $< + rpmbuild -ta $< $(RPMDEFS) srpm: qarsh-$(VERSION).tar.bz2 qarsh.spec - rpmbuild -ts $< + rpmbuild -ts $< $(RPMDEFS) # Redefine the default compile rule to include target specific parts %: %.c |