aboutsummaryrefslogtreecommitdiff
path: root/mk/dist.mk
blob: 90383482bb6dc79dc01dfbf35ea1acdb2b9793c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# rules to make a distribution tarball from a git repo
# Copyright 2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.

GITREF?=	HEAD
DISTPREFIX?=	${NAME}-${VERSION}
DISTFILE?=	${DISTPREFIX}.tar.bz2

CLEANFILES+=	${DISTFILE}

dist:
	git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}