-Winline -Wwrite-strings -Wcast-align -Wcast-qual \
-Wpointer-arith \
-Wdeclaration-after-statement -Wsequence-point
-_CC_FLAGS_SH= if ! test -d .svn; then echo ""; else for f in ${_CCFLAGS}; do \
+_CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
if echo "int main(void) { return 0;} " | \
${CC} $$f -S -xc -o /dev/null - ; \
then printf "%s" "$$f "; fi \
# rules to make a distribution tarball from a svn repo
-# Copyright 2008 Roy Marples <roy@marples.name>
+# Copyright 2008-2009 Roy Marples <roy@marples.name>
GITREF?= HEAD
DISTPREFIX?= ${PROG}-${VERSION}
SNAPFILE= ${SNAPDIR}.tar.bz2
dist:
- svn export . ${DISTPREFIX}
- tar cjpf ${DISTFILE} ${DISTPREFIX}
- rm -rf ${DISTPREFIX}
+ git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
snapshot:
mkdir /tmp/${SNAPDIR}