mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-31 16:52:10 +01:00
OP-1695 Ubuntu PPA: made dist targets depend on .git/index instead of being PHONY
This commit is contained in:
parent
51e4f3aa0e
commit
c0c2e0b721
6
Makefile
6
Makefile
@ -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)" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user