1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

OP-1695 Ubuntu PPA: made dist targets depend on .git/index instead of being PHONY

This commit is contained in:
James Duley 2015-02-16 16:57:57 +13:00
parent 51e4f3aa0e
commit c0c2e0b721

View File

@ -887,13 +887,13 @@ build-info:
############################## ##############################
DIST_VER_INFO := $(DIST_DIR)/version-info.json 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): .git/index $(MODIFIED_FILES) | $(DIST_DIR)
$(DIST_VER_INFO): | $(DIST_DIR)
$(V1) $(VERSION_INFO) --jsonpath="$(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)" @$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(DIST_NAME).gz)"
$(V1) git archive --prefix="$(PACKAGE_NAME)/" -o "$(DIST_NAME)" HEAD $(V1) git archive --prefix="$(PACKAGE_NAME)/" -o "$(DIST_NAME)" HEAD
$(V1) tar --append --file="$(DIST_NAME)" \ $(V1) tar --append --file="$(DIST_NAME)" \