-Wbad-function-cast -Wnested-externs -Wcomment -Winline \
-Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
-Wdeclaration-after-statement -Wsequence-point -Wextra
-_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 ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
then printf "%s" "$$f "; fi \
done; 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}