From 2a5a2f697a60bbfe30102d37121227ae7dad5c93 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 11 Jun 2009 15:34:56 +0200 Subject: 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 --- Makefile | 7 +++++-- 1 file 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 -- cgit