From 9b82914f7dcb3c4d77273bbc1f833ad3d301b22b Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Wed, 7 Jun 2017 23:12:33 +0100 Subject: [PATCH] Run make tag on pkg directory to check packages build This at least checks for buildability of packages, even if we are not yet pushing them. See https://github.com/linuxkit/linuxkit/issues/1991 for what it mitigates. Will not pass until this is fixed. Signed-off-by: Justin Cormack --- Makefile | 3 +++ pkg/Makefile | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 61fc0ca5e..87f5cabd0 100644 --- a/Makefile +++ b/Makefile @@ -59,18 +59,21 @@ ci: $(MAKE) $(MAKE) install $(MAKE) -C test all + $(MAKE) -C pkg tag ci-tag: $(MAKE) clean $(MAKE) $(MAKE) install $(MAKE) -C test all + $(MAKE) -C pkg tag ci-pr: $(MAKE) clean $(MAKE) $(MAKE) install $(MAKE) -C test pr + $(MAKE) -C pkg tag .PHONY: clean clean: diff --git a/pkg/Makefile b/pkg/Makefile index 20c61fb08..81ed81bce 100644 --- a/pkg/Makefile +++ b/pkg/Makefile @@ -1,10 +1,10 @@ DIRS = $(shell find . -type d -depth 1) .PHONY: clean dirs $(DIRS) -push: $(DIRS) +push: + @set -e; for d in $(DIRS); do make -C "$$d"; done -$(DIRS): - $(MAKE) -C $@ +tag: + @set -e; for d in $(DIRS); do make -C "$$d" tag; done -clean: - rm -f hash +clean: ;