2008-01-10 22:07:42 +05:30
|
|
|
# rules to make a distribution tarball from a git repo
|
|
|
|
# Copyright 2008 Roy Marples <roy@marples.name>
|
2008-03-26 23:23:37 +05:30
|
|
|
# All rights reserved. Released under the 2-clause BSD license.
|
2008-01-10 22:07:42 +05:30
|
|
|
|
|
|
|
GITREF?= HEAD
|
2008-03-03 18:44:54 +05:30
|
|
|
DISTPREFIX?= ${NAME}-${VERSION}
|
2008-01-10 22:07:42 +05:30
|
|
|
DISTFILE?= ${DISTPREFIX}.tar.bz2
|
|
|
|
|
|
|
|
CLEANFILES+= ${DISTFILE}
|
|
|
|
|
|
|
|
dist:
|
|
|
|
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
|