From c0c2e0b721a52a7e54cb3db8dfaf8b779b6d771c Mon Sep 17 00:00:00 2001 From: James Duley Date: Mon, 16 Feb 2015 16:57:57 +1300 Subject: [PATCH] OP-1695 Ubuntu PPA: made dist targets depend on .git/index instead of being PHONY --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index db5360d59..19e2f55b7 100644 --- a/Makefile +++ b/Makefile @@ -887,13 +887,13 @@ build-info: ############################## DIST_VER_INFO := $(DIST_DIR)/version-info.json +MODIFIED_FILES := $(shell git ls-files -m) -.PHONY: $(DIST_VER_INFO) # Because to many deps to list -$(DIST_VER_INFO): | $(DIST_DIR) +$(DIST_VER_INFO): .git/index $(MODIFIED_FILES) | $(DIST_DIR) $(V1) $(VERSION_INFO) --jsonpath="$(DIST_DIR)" -$(DIST_NAME).gz: $(DIST_VER_INFO) | $(DIST_DIR) +$(DIST_NAME).gz: $(DIST_VER_INFO) .git/index | $(DIST_DIR) @$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_NAME).gz)" $(V1) git archive --prefix="$(PACKAGE_NAME)/" -o "$(DIST_NAME)" HEAD $(V1) tar --append --file="$(DIST_NAME)" \