Permalink
Browse files

added dist target to hubdns

  • Loading branch information...
1 parent 382890e commit e6613b727a2b4062fa0d9ca9caaa2fed4e60d092 @lirazsiri lirazsiri committed Aug 11, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 Makefile
View
@@ -5,13 +5,23 @@ name=
prefix = /usr/local
PATH_BIN = $(prefix)/bin
PATH_INSTALL_LIB = $(prefix)/lib/$(progname)
+PATH_DIST := $(progname)-$$(autoversion HEAD)
all: help
debug:
$(foreach v, $V, $(warning $v = $($v)))
@true
+dist:
+ -mkdir -p $(PATH_DIST)
+
+ cp -a .git $(PATH_DIST)
+ cd $(PATH_DIST) && git-checkout --force HEAD
+
+ tar jcvf $(PATH_DIST).tar.bz2 $(PATH_DIST)
+ rm -rf $(PATH_DIST)
+
help:
@echo '=== Targets:'
@echo 'install [ prefix=path/to/usr ] # default: prefix=$(value prefix)'

0 comments on commit e6613b7

Please sign in to comment.