Skip to content

Commit

Permalink
added dist target to hubdns
Browse files Browse the repository at this point in the history
  • Loading branch information
lirazsiri committed Aug 11, 2011
1 parent 382890e commit e6613b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Expand Up @@ -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)'
Expand Down

0 comments on commit e6613b7

Please sign in to comment.