summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-06-11 15:34:56 +0200
committerDavid Sommerseth <davids@redhat.com>2009-06-11 15:34:56 +0200
commit2a5a2f697a60bbfe30102d37121227ae7dad5c93 (patch)
tree1a7ecbcf8c3f1da2ac32582250766a315d59a1d9 /Makefile
parent0bad177cda15cf21ab5bb7f1ea9eaf736d0f1ba7 (diff)
downloadpython-dmidecode-2a5a2f697a60bbfe30102d37121227ae7dad5c93.tar.gz
python-dmidecode-2a5a2f697a60bbfe30102d37121227ae7dad5c93.tar.xz
python-dmidecode-2a5a2f697a60bbfe30102d37121227ae7dad5c93.zip
Use version info from version.h in Makefile
Also cleaned up a little bit and added 'version' as a new target to show some version info
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index da32cb6..f428ca3 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,10 @@
#. Licensed under the GNU Public License v2
#.
-VERSION := 3.10.6
+VERSION := $(shell cd src;python -c "from setup_common import *; print get_version();")
PY := $(shell python -V 2>&1 |sed -e 's/.\(ython\) \(2\.[0-9]\)\..*/p\1\2/')
PY_VER := $(subst python,,$(PY))
PACKAGE := python-dmidecode
-SRCSRV := /var/www/nima/sites/src.autonomy.net.au/pub
CC := gcc
RM := rm -f
@@ -57,6 +56,10 @@ install:
uninstall:
$(PY) src/setup.py uninstall
+version :
+ @echo "python-dmidecode: $(VERSION)"
+ @echo "python version: $(PY_VER) ($(PY))"
+
clean :
# dh_clean
$(PY) src/setup.py clean