mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
build: Make dist use files from git plus few autogenerated ones
To avoid forgetting to include files, we'll use “git ls-files” and will include few precious autogenerated files that cannot be generated later on w/o git. This includes mainly the ChangeLog.
This commit is contained in:
parent
9396cc62cf
commit
db406fe24c
10
Makefile
10
Makefile
@ -14,11 +14,7 @@ TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
|
|||||||
TAR_FILE := $(TAR_NAME).tar.gz
|
TAR_FILE := $(TAR_NAME).tar.gz
|
||||||
|
|
||||||
LIB_DIST := \
|
LIB_DIST := \
|
||||||
Makefile \
|
ChangeLog
|
||||||
README \
|
|
||||||
ChangeLog \
|
|
||||||
Versions \
|
|
||||||
$(LIB_PKGCONFIG).in
|
|
||||||
|
|
||||||
LIB_SRCS_GEN := \
|
LIB_SRCS_GEN := \
|
||||||
hash/md5hl.c
|
hash/md5hl.c
|
||||||
@ -151,9 +147,9 @@ ChangeLog:
|
|||||||
-git log --stat -C >$@
|
-git log --stat -C >$@
|
||||||
|
|
||||||
.PHONY: dist
|
.PHONY: dist
|
||||||
dist: ChangeLog
|
dist: $(LIB_DIST)
|
||||||
mkdir $(TAR_NAME)
|
mkdir $(TAR_NAME)
|
||||||
cp -a include src man $(LIB_DIST) $(TAR_NAME)
|
cp -a --parents $(LIB_DIST) `git ls-files` $(TAR_NAME)
|
||||||
tar czf $(TAR_FILE) --exclude=.gitignore $(TAR_NAME)
|
tar czf $(TAR_FILE) --exclude=.gitignore $(TAR_NAME)
|
||||||
rm -rf $(TAR_NAME)
|
rm -rf $(TAR_NAME)
|
||||||
gpg -a -b $(TAR_FILE)
|
gpg -a -b $(TAR_FILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user