From db406fe24ce18ddce4aa0c5985a77233347d3f27 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 12 Dec 2009 01:46:25 +0100 Subject: [PATCH] build: Make dist use files from git plus few autogenerated ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 190e10d..282fa7c 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,7 @@ TAR_NAME := $(LIB_NAME)-$(LIB_VERSION) TAR_FILE := $(TAR_NAME).tar.gz LIB_DIST := \ - Makefile \ - README \ - ChangeLog \ - Versions \ - $(LIB_PKGCONFIG).in + ChangeLog LIB_SRCS_GEN := \ hash/md5hl.c @@ -151,9 +147,9 @@ ChangeLog: -git log --stat -C >$@ .PHONY: dist -dist: ChangeLog +dist: $(LIB_DIST) 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) rm -rf $(TAR_NAME) gpg -a -b $(TAR_FILE)