summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e2b5af3..0300022 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,8 @@ install: build
install libldetect.h $(includedir)
rpm: clean $(RPM)
+ perl -pi -e "s/^(%define version).*/\1 $(version)/" $(project).spec
+
(echo "# !! DON'T MODIFY HERE, MODIFY IN THE CVS !!" ; \
echo "%define version $(version)" ; \
cat $(project).spec \