Use git directories instead of gemspec files as dependency
Minitest repository does not commit its gemspec file.
This commit is contained in:
parent
3c01342e19
commit
0a9efe8701
Notes:
git
2023-02-21 17:08:22 +00:00
@ -338,13 +338,13 @@ $(srcdir)/.bundle/.timestamp:
|
|||||||
$(MAKEDIRS) $@
|
$(MAKEDIRS) $@
|
||||||
|
|
||||||
define build-gem
|
define build-gem
|
||||||
$(srcdir)/gems/src/$(1)/$(1).gemspec: | $(srcdir)/gems/src
|
$(srcdir)/gems/src/$(1)/.git: | $(srcdir)/gems/src
|
||||||
$(ECHO) Cloning $(4)
|
$(ECHO) Cloning $(4)
|
||||||
$(Q) $(GIT) clone $(4) $$(@D)
|
$(Q) $(GIT) clone $(4) $$(@D)
|
||||||
|
|
||||||
$(srcdir)/.bundle/.timestamp/$(1).revision: $(srcdir)/gems/src/$(1)/$(1).gemspec \
|
$(srcdir)/.bundle/.timestamp/$(1).revision: \
|
||||||
$(if $(if $(wildcard $$(@)),$(filter $(3),$(shell cat $$(@)))),,PHONY) \
|
$(if $(if $(wildcard $$(@)),$(filter $(3),$(shell cat $$(@)))),,PHONY) \
|
||||||
| $$(@D)
|
| $(srcdir)/.bundle/.timestamp $(srcdir)/gems/src/$(1)/.git
|
||||||
$(ECHO) Update $(1) to $(3)
|
$(ECHO) Update $(1) to $(3)
|
||||||
$(Q) $(CHDIR) "$(srcdir)/gems/src/$(1)" && \
|
$(Q) $(CHDIR) "$(srcdir)/gems/src/$(1)" && \
|
||||||
$(GIT) fetch origin $(3) && \
|
$(GIT) fetch origin $(3) && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user