1From 4ad8932f93c490d15586b1def3863e9580e6eceb Mon Sep 17 00:00:00 2001 2From: Martin Bark <martin@barkynet.com> 3Date: Sat, 3 Dec 2016 13:51:50 +0000 4Subject: [PATCH] remove dependency check on version file 5 6$(VERSION_DEPS) includes dependencies from tzdata meaning applications 7such as zic can't build from tzcode on their own. Remove the dependency 8to $(VERSION_DEPS) since it is not necessary to check for version updates 9in released code. This solves building zic from tzcode without needing 10tzdata. 11 12Signed-off-by: Martin Bark <martin@barkynet.com> 13--- 14 Makefile | 2 +- 15 1 file changed, 1 insertion(+), 1 deletion(-) 16 17diff --git a/Makefile b/Makefile 18index 1b714a8..00d2c09 100644 19--- a/Makefile 20+++ b/Makefile 21@@ -587,7 +587,7 @@ INSTALL: ALL install date.1 22 # Otherwise, use $(VERSION) unless it is "unknown" and there is already 23 # a 'version' file, in which case reuse the existing 'version' contents 24 # and append "-dirty" if the contents do not already end in "-dirty". 25-version: $(VERSION_DEPS) 26+version: 27 { (type git) >/dev/null 2>&1 && \ 28 V=`git describe --match '[0-9][0-9][0-9][0-9][a-z]*' \ 29 --abbrev=7 --dirty` || \ 30-- 312.7.4 32 33