Permalink
Browse files

TOOLS-136: Add publish target to Makefile

  • Loading branch information...
1 parent b7e9bbb commit 0f7a2d4c9ffbfc882c83c8a3cb1d07d9db68f5ef @orlandov orlandov committed Jun 29, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Makefile
View
9 Makefile
@@ -73,6 +73,15 @@ release: all deps #docs
(cd $(TMPDIR) && $(TAR) -jcf $(ROOT)/$(RELEASE_TARBALL) convertvm)
@rm -rf $(TMPDIR)
+.PHONY: publish
+publish: release
+ @if [[ -z "$(BITS_DIR)" ]]; then \
+ echo "error: 'BITS_DIR' must be set for 'publish' target"; \
+ exit 1; \
+ fi
+ mkdir -p $(BITS_DIR)/convertvm
+ cp $(ROOT)/$(RELEASE_TARBALL) $(BITS_DIR)/convertvm/$(RELEASE_TARBALL)
+
include ./tools/mk/Makefile.deps
include ./tools/mk/Makefile.node_prebuilt.targ

0 comments on commit 0f7a2d4

Please sign in to comment.