build: Add dist target, allow user to modify version.

ck_pring
Samy Al Bahra 12 years ago
parent 45f310893c
commit d37eb779cb

@ -1,4 +1,4 @@
.PHONY: all check clean distclean doc install install-headers regressions uninstall .PHONY: all check clean dist distclean doc install install-headers regressions uninstall
CFLAGS=@CFLAGS@ CFLAGS=@CFLAGS@
VERSION=@VERSION@ VERSION=@VERSION@
@ -7,8 +7,6 @@ PREFIX=@PREFIX@
LIBRARY=@LIBRARY@ LIBRARY=@LIBRARY@
HEADERS=@HEADERS@ HEADERS=@HEADERS@
PKGCONFIG_DATA=@LIBRARY@/pkgconfig PKGCONFIG_DATA=@LIBRARY@/pkgconfig
DISTDIR=.spool
DISTFILE=$(DISTDIR)/ck-$(VERSION).tar.gz
all: doc all: doc
$(MAKE) -C src all || exit $(MAKE) -C src all || exit
@ -69,6 +67,10 @@ clean:
$(MAKE) -C regressions clean $(MAKE) -C regressions clean
rm -f *~ *.o *.tar.gz rm -f *~ *.o *.tar.gz
dist:
git archive --format=tar --prefix=ck-$(VERSION)/ HEAD \
| gzip > ck-$(VERSION).tar.gz
distclean: clean distclean: clean
rm -f include/ck_md.h rm -f include/ck_md.h
rm -f build/regressions.build rm -f build/regressions.build

3
configure vendored

@ -32,7 +32,7 @@ EXIT_SUCCESS=0
EXIT_FAILURE=1 EXIT_FAILURE=1
MAINTAINER='sbahra@repnop.org' MAINTAINER='sbahra@repnop.org'
VERSION='0.2.7' VERSION=${VERSION:-'0.2.7'}
VERSION_MAJOR='0' VERSION_MAJOR='0'
BUILD="$PWD/build/ck.build" BUILD="$PWD/build/ck.build"
PREFIX=${PREFIX:-"/usr/local"} PREFIX=${PREFIX:-"/usr/local"}
@ -100,6 +100,7 @@ generate_stdout()
{ {
echo echo
echo " VERSION = $VERSION"
echo " PROFILE = $PROFILE" echo " PROFILE = $PROFILE"
echo " CC = $CC" echo " CC = $CC"
echo " COMPILER = $COMPILER" echo " COMPILER = $COMPILER"

Loading…
Cancel
Save