summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2008-07-12 07:00:19 +0300
committerGuillem Jover <guillem@hadrons.org>2008-07-12 07:39:25 +0300
commit8c7f053ab0d9a3f54a38b752ffbcc2c6ef226f8c (patch)
tree10b8ccb9ad9405cdabc2638f7e9f612a8d867f7e
parentc1615a50d35da13c174a9e162995de7fcb024773 (diff)
Automatically generate the ChangeLog on 'make dist'
-rw-r--r--.gitignore1
-rw-r--r--Makefile9
2 files changed, 8 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index eb269d4..b6d5193 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+ChangeLog
*.lo
*.o
*.so*
diff --git a/Makefile b/Makefile
index 2d10c42..5ca2b94 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR)
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
TAR_FILE := $(TAR_NAME).tar.gz
-LIB_DIST := Makefile Versions $(LIB_PKGCONFIG)
+LIB_DIST := Makefile ChangeLog Versions $(LIB_PKGCONFIG)
LIB_SRCS := arc4random.c bsd_getopt.c err.c fgetln.c heapsort.c \
humanize_number.c inet_net_pton.c \
@@ -71,7 +71,12 @@ $(LIB_SHARED): $(LIB_SHARED_OBJS)
-Wl,--version-script=Versions \
-o $@ $^
-dist: clean
+.PHONY: ChangeLog
+
+ChangeLog:
+ -git log --stat -C >$@
+
+dist: ChangeLog
mkdir $(TAR_NAME)
cp -a include src man $(LIB_DIST) $(TAR_NAME)
tar czf $(TAR_FILE) $(TAR_NAME)