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

3
configure vendored

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

Loading…
Cancel
Save