From: Eric S. Raymond Date: Wed, 24 Dec 2003 21:36:02 +0000 (+0000) Subject: Get the spec version number from the makefile. X-Git-Tag: 2.5~2 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=1e2a092c134fe869126e8b0abab80cc3bca42cdf;p=bs.git Get the spec version number from the makefile. --- diff --git a/Makefile b/Makefile index 17a0916..1317b93 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,11 @@ # Makefile for bs, the Battleships game -# Note: When the version changes, you also have to change the RPM spec file VERSION=2.5 # Flags for use with the Linux ncurses package (recommended) TERMLIB = -lncurses CC = gcc -# Flags for use with stock curses -# TERMLIB = -lcurses -# CC = gcc - bs: bs.c $(CC) $(CFLAGS) -o bs bs.c $(TERMLIB) @@ -39,7 +34,7 @@ dist: bs-$(VERSION).tar.gz RPMROOT=/usr/src/redhat rpm: dist - rpmbuild -ta bs-$(VERS).tar.gz + rpmbuild --define 'myversion $(VERS)' -ta bs-$(VERS).tar.gz cp $(RPMROOT)/RPMS/*/bs-$(VERS)*.rpm . cp $(RPMROOT)/SRPMS/bs-$(VERS)*.src.rpm .