nvm/Makefile

27 lines
589 B
Makefile
Raw Normal View History

URCHIN=`which urchin`
SHELLS=sh bash dash ksh zsh
2014-05-11 00:59:34 +08:00
TEST_SUITE=fast
2014-07-10 16:51:36 +08:00
.PHONY: $(SHELLS) test verify-tag release
$(SHELLS):
@printf '\n\033[0;34m%s\033[0m\n' "Running tests in $@"
2014-05-11 00:59:34 +08:00
@$@ $(URCHIN) -f test/$(TEST_SUITE)
2014-05-11 01:03:50 +08:00
test: $(SHELLS)
2014-09-30 05:26:19 +08:00
@$(URCHIN) -f test/slow
2014-03-23 04:10:18 +08:00
default: test
2014-07-10 16:51:36 +08:00
verify-tag:
ifndef TAG
$(error TAG is undefined)
endif
release: verify-tag
@ OLD_TAG=`git describe --abbrev=0 --tags` && \
replace "$${OLD_TAG/v/}" "$(TAG)" -- nvm.sh install.sh README.markdown package.json && \
git commit -m "v$(TAG)" nvm.sh install.sh README.markdown package.json && \
git tag "v$(TAG)"