~sourcemage/sorcery

c86011697bb819ec8388d7964a5a48935a0c4acf — Ismael Luceno 3 months ago 468486f
Makefile: Make filename depend on branch

- Removes the $(shell ...) GNUism.
- Stable releases get called: sorcery-x.y.z.tar.bz2
  (x.y.z comes from etc/sorcery/version)
- Other branches get called: sorcery-${BRANCH}.tar.bz2
1 files changed, 5 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +5 -2
@@ 5,8 5,11 @@ AWK ?= awk
help:
	@${AWK} 'sub(/^#HELP: ?/, "")' ${.MAKE.MAKEFILES}

BRANCH = $(shell cat etc/sorcery/version)
release = sorcery-$(BRANCH).tar.bz2
BRANCH = devel
VERSION-${BRANCH} := ${BRANCH}
VERSION-stable != cat etc/sorcery/version
VERSION := ${VERSION-${BRANCH}}
release = sorcery-${VERSION}.tar.bz2

ts-scm = .git/refs/heads/master