summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c7af386
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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)