Create "spec" target (bug #3413)
authorMark Spencer <markster@digium.com>
Fri, 4 Feb 2005 05:44:13 +0000 (05:44 +0000)
committerMark Spencer <markster@digium.com>
Fri, 4 Feb 2005 05:44:13 +0000 (05:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4961 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index fd9628c..484c138 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -540,16 +540,18 @@ webvmail:
 mailbox:
        ./contrib/scripts/addmailbox 
 
+spec: 
+       sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
+
 rpm: __rpm
 
-__rpm: _version
+__rpm: _version spec
        rm -rf /tmp/asterisk ; \
        mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
        $(MAKE) DESTDIR=/tmp/asterisk install ; \
        $(MAKE) DESTDIR=/tmp/asterisk samples ; \
        mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
        cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
-       sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
        rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
 
 progdocs: