mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
build-system: use a shell variable for TMPFILE in debian-snapshot
Aaron Ecay points out in id:"1324136185-4509-1-git-send-email-aaronecay@gmail.com" that the mktemp in debian-snapshot: TMPFILE := $(shell mktemp) Is being evaluated for every target. As best I can tell, this is because make is evaluating the right hand side, even though it is not doing the assignment. Of course, it isn't quite as nice to edit with the line continuations, but it is ideomatic make.
This commit is contained in:
parent
451c57d19a
commit
47b5797261
1 changed files with 8 additions and 7 deletions
|
@ -139,15 +139,16 @@ pre-release:
|
|||
mv $(TAR_FILE) $(DEB_TAR_FILE) releases
|
||||
|
||||
.PHONY: debian-snapshot
|
||||
debian-snapshot: TMPFILE := $(shell mktemp)
|
||||
debian-snapshot:
|
||||
make VERSION=$(VERSION) clean
|
||||
cp debian/changelog $(TMPFILE)
|
||||
EDITOR=/bin/true dch -b -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
|
||||
echo '3.0 (native)' > debian/source/format
|
||||
debuild -us -uc
|
||||
mv -f $(TMPFILE) debian/changelog
|
||||
echo '3.0 (quilt)' > debian/source/format
|
||||
TMPFILE=$$(mktemp /tmp/notmuch.XXXXXX); \
|
||||
cp debian/changelog $${TMPFILE}; \
|
||||
EDITOR=/bin/true dch -b -v $(VERSION)+1 \
|
||||
-D UNRELEASED 'test build, not for upload'; \
|
||||
echo '3.0 (native)' > debian/source/format; \
|
||||
debuild -us -uc; \
|
||||
mv -f $${TMPFILE} debian/changelog; \
|
||||
echo '3.0 (quilt)' > debian/source/format
|
||||
|
||||
.PHONY: release-message
|
||||
release-message:
|
||||
|
|
Loading…
Reference in a new issue