aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-21 16:10:06 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-21 16:10:06 +0200
commit22456af43b2a77f010de423c69210311680307f9 (patch)
tree6a78bf7e36b3ec9fc1690626573992f0680179f4
parent36940845e7621f3b375da7218259e3d7b22664b6 (diff)
downloadpingu-22456af43b2a77f010de423c69210311680307f9.tar.bz2
pingu-22456af43b2a77f010de423c69210311680307f9.tar.xz
configure: set package version in configure
-rw-r--r--Makefile3
-rwxr-xr-xconfigure4
2 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d9c77db..b2c9049 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,11 @@ BIN_TARGETS = mtu
SBIN_TARGETS = pingu pinguctl
TARGETS = $(BIN_TARGETS) $(SBIN_TARGETS) $(LUA_TARGETS)
-VERSION = 1.2
PINGU_VERSION := $(shell \
if [ -d .git ]; then \
git describe --long; \
else \
- echo $(VERSION); \
+ echo $(PACKAGE_VERSION); \
fi)
prefix ?= /usr/local
diff --git a/configure b/configure
index 50815f7..444ccbe 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,7 @@
#!/bin/sh
PACKAGE=pingu
+PACKAGE_VERSION=1.2
TMPDIR=${TMPDIR:-${TEMPDIR:-/tmp}}
TMPC="$TMPDIR/$PACKAGE-conf-$$.c"
@@ -156,6 +157,7 @@ fi
# generate config.h
config_h_vars="
PACKAGE
+PACKAGE_VERSION
HAVE_STRLCPY
"
@@ -193,6 +195,8 @@ LUAPC
CC
CFLAGS
LDFLAGS
+PACKAGE
+PACKAGE_VERSION
"
echo "# this file is generated by $0" >config.mk