From 220dfc74ea7d04a65c1c3e859f5edc72d79aeaf9 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Thu, 13 Oct 2022 10:04:18 -0400 Subject: [PATCH] Install osqtool (unversioned at the moment) --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 23cdef9..08fe828 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ -out/odk-detection.sql: +out/osqtool: mkdir -p out - osqtool pack detection/ > out/odk-detection.conf + GOBIN=$(CURDIR)/out go install github.com/chainguard-dev/osqtool/cmd/osqtool@latest -out/odk-policy.sql: - mkdir -p out - osqtool pack policy/ > out/odk-policy.conf +out/odk-detection.sql: out/osqtool + ./out/osqtool pack detection/ > out/odk-detection.conf -out/odk-incident_response.sql: - mkdir -p out - osqtool pack incident_response/ > out/odk-incident_response.conf +out/odk-policy.sql: out/osqtool + ./out/osqtool pack policy/ > out/odk-policy.conf + +out/odk-incident_response.sql: out/osqtool + ./out/osqtool pack incident_response/ > out/odk-incident_response.conf packs: out/odk-detection.sql out/odk-policy.sql out/odk-incident_response.sql