chiark / gitweb /
vol_id: if regular files are probed, use stat() for the size value
[elogind.git] / Makefile.am
index ae21bca16c3c329332d0864467a30ae762cfd22f..1d87bfd1a89a9447c1491f1cd9cd170ad7954df4 100644 (file)
@@ -1,3 +1,5 @@
+include $(top_srcdir)/Makefile.am.inc
+
 SUBDIRS = \
        udev \
        rules \
@@ -12,6 +14,8 @@ EXTRA_DIST = \
        docs \
        autogen.sh
 
+PREVIOUS_VERSION = `expr $(VERSION) - 1`
+
 distclean-local:
        rm -f *~
        rm -rf autom4te.cache
@@ -21,12 +25,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 v$(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
@@ -47,4 +51,3 @@ git-release:
        cat .git/refs/heads/master > .git/refs/tags/$(VERSION)
        git gc
        git prune
-       git-update-server-info