mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-05-05 14:26:05 +00:00
Update pkg/Makefile and test/pkg/Makefile based on tools/Makefile
Using explicit targets is cleaner and easier to follow. Also add `forcepush` to pkg and test/pkg and make `push` explicit. The `dirs` phony was non-existent in all three cases. Likewise `$(DIR)` wasn't used in that way in pkg or test/pkg and is nolonger used in that way in tools. Finally, `clean` was bogus in all cases (tools cleaned a thing which never exists and pkg and test/pkg were a syntax error). Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
DIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d)
|
||||
.PHONY: clean dirs $(DIRS)
|
||||
.PHONY: push forcepush tag forcetag show-tag clean
|
||||
|
||||
push: $(DIRS)
|
||||
push:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" push; done
|
||||
|
||||
$(DIRS):
|
||||
$(MAKE) -C $@
|
||||
forcepush:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" forcepush; done
|
||||
|
||||
tag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" tag; done
|
||||
|
||||
forcetag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" forcetag; done
|
||||
|
||||
show-tag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" show-tag; done
|
||||
|
||||
clean:
|
||||
rm -f hash
|
||||
|
||||
Reference in New Issue
Block a user