mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
Automatically generate the ChangeLog on 'make dist'
This commit is contained in:
parent
c1615a50d3
commit
8c7f053ab0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
ChangeLog
|
||||||
*.lo
|
*.lo
|
||||||
*.o
|
*.o
|
||||||
*.so*
|
*.so*
|
||||||
|
9
Makefile
9
Makefile
@ -16,7 +16,7 @@ LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR)
|
|||||||
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
|
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
|
||||||
TAR_FILE := $(TAR_NAME).tar.gz
|
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 \
|
LIB_SRCS := arc4random.c bsd_getopt.c err.c fgetln.c heapsort.c \
|
||||||
humanize_number.c inet_net_pton.c \
|
humanize_number.c inet_net_pton.c \
|
||||||
@ -71,7 +71,12 @@ $(LIB_SHARED): $(LIB_SHARED_OBJS)
|
|||||||
-Wl,--version-script=Versions \
|
-Wl,--version-script=Versions \
|
||||||
-o $@ $^
|
-o $@ $^
|
||||||
|
|
||||||
dist: clean
|
.PHONY: ChangeLog
|
||||||
|
|
||||||
|
ChangeLog:
|
||||||
|
-git log --stat -C >$@
|
||||||
|
|
||||||
|
dist: ChangeLog
|
||||||
mkdir $(TAR_NAME)
|
mkdir $(TAR_NAME)
|
||||||
cp -a include src man $(LIB_DIST) $(TAR_NAME)
|
cp -a include src man $(LIB_DIST) $(TAR_NAME)
|
||||||
tar czf $(TAR_FILE) $(TAR_NAME)
|
tar czf $(TAR_FILE) $(TAR_NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user