diff options
-rw-r--r-- | fedora/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fedora/Makefile b/fedora/Makefile index b8708e2737..0a3a97a5a6 100644 --- a/fedora/Makefile +++ b/fedora/Makefile @@ -1,5 +1,7 @@ # Makefile for maintaining glibc fedora-branch and creating Fedora source RPMs. +glibc.spec: # The default target. + tag-prefix := fedora- .PHONY: update commit-merge commit patch tag archive finish_archive srpm rpm @@ -47,6 +49,10 @@ glibc.spec: glibc.spec.in ../version.h branch.mk cat $<) > $@.new mv -f $@.new $@ +ifeq (,$(wildcard glibc.spec)) +Makefile: glibc.spec ; +else + spec-nvr := $(shell rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}\n' \ --specfile glibc.spec | sed 1q) spec-tag = $(subst .,_,$(spec-nvr)) @@ -95,3 +101,5 @@ $(spec-nvr).src.rpm: glibc.spec $(archives) --define "_specdir `pwd`" \ --define "_srcrpmdir `pwd`" \ --nodeps -bs $< + +endif |