# 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
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))
--define "_specdir `pwd`" \
--define "_srcrpmdir `pwd`" \
--nodeps -bs $<
+
+endif