summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c7af3863cce799c4818c1b395bd5d420f94c8c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PKGS := arch release stream stream/rhcos release/rhcos fedoracoreos

BUILD_PKGS = $(foreach pkg,$(PKGS),build-$(pkg))
TEST_PKGS = $(foreach pkg,$(PKGS),test-$(pkg))

build: $(BUILD_PKGS)
.PHONY: build

$(BUILD_PKGS): build-%:
	cd $* && go build
.PHONY: $(BUILD_PKGS)

test: $(TEST_PKGS)
.PHONY: test

$(TEST_PKGS): test-%:
	cd $* && go test
.PHONY: $(TEST_PKGS)