summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-03-05 11:05:50 -0800
committerisaacs <i@izs.me>2013-03-05 14:43:27 -0800
commitf9ba9f7badf40ad6360526095b7bec8e3319752b (patch)
treeeddc8f99f9b19c0dead92e8223e98b931f8ce8c6 /Makefile
parent312289b791a5924eec5748fbd19ad6867ff37320 (diff)
downloadnode-new-f9ba9f7badf40ad6360526095b7bec8e3319752b.tar.gz
build: define nightly tag external to build system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 942bda31cc..ae05f4dc71 100644
--- a/Makefile
+++ b/Makefile
@@ -225,8 +225,8 @@ ARCH=x86
endif
endif
TARNAME=node-$(VERSION)
-ifeq ($(NIGHTLY),1)
-TAG = nightly-$(shell date "+%Y%m%d")
+ifdef NIGHTLY
+TAG = nightly-$(NIGHTLY)
TARNAME=node-$(VERSION)-$(TAG)
endif
TARBALL=$(TARNAME).tar.gz
@@ -251,7 +251,7 @@ release-only:
echo "" >&2 ; \
exit 1 ; \
fi
- @if [ "$(NIGHTLY)" = "1" -o "$(RELEASE)" = "1" ]; then \
+ @if [ "$(NIGHTLY)" != "" -o "$(RELEASE)" = "1" ]; then \
exit 0; \
else \
echo "" >&2 ; \