summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2008-08-13 00:01:46 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-08-13 11:13:06 +0200
commit4c538fb5273c596bb6a63e04c5c6df3586e21ffd (patch)
treee50146a9aedf32c30686b5ae3d55f256b0fd83d4 /Makefile.am
parenta3b55b1c4744ab0e7f78057db04f6832688a5a3f (diff)
build-sys: remove non-POSIX variable names
Makefile.am:24: shell echo $$(( $(VERSION: non-POSIX variable name Makefile.am:24: (probably a GNU make extension) Makefile.am:26: shell echo $$(($(VERSION: non-POSIX variable name Makefile.am:26: (probably a GNU make extension) Makefile.am:29: shell echo $$(($(VERSION: non-POSIX variable name Makefile.am:29: (probably a GNU make extension) Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index ae21bca16c..a4260ea8e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,6 +12,8 @@ EXTRA_DIST = \
docs \
autogen.sh
+PREVIOUS_VERSION = `expr $(VERSION) - 1`
+
distclean-local:
rm -f *~
rm -rf autom4te.cache
@@ -21,12 +23,12 @@ distclean-local:
rm -f udev-$(VERSION).tar.gz udev-$(VERSION).tar.bz2
changelog:
- @ head -1 ChangeLog | grep -q "to v$(shell echo $$(($(VERSION) - 1)))"
+ @ head -1 ChangeLog | grep -q "to $(PREVIOUS_VERSION)"
@ mv ChangeLog ChangeLog.tmp
- @ echo "Summary of changes from v$(shell echo $$(($(VERSION) - 1))) to v$(VERSION)" >> ChangeLog
+ @ echo "Summary of changes from v$(PREVIOUS_VERSION) to v$(VERSION)" >> ChangeLog
@ echo "============================================" >> ChangeLog
@ echo >> ChangeLog
- @ git log --pretty=short $(shell echo $$(($(VERSION) - 1)))..HEAD | git shortlog >> ChangeLog
+ @ git log --pretty=short $(PREVIOUS_VERSION)..HEAD | git shortlog >> ChangeLog
@ echo >> ChangeLog
@ cat ChangeLog
@ cat ChangeLog.tmp >> ChangeLog