-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
GOCMD=go
GOBUILD=$(GOCMD) build -o ./.aws-sam/build/
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GOVET=$(GOCMD) vet
SAMBUILD=./.aws-sam/build/
.PHONY: deps clean build
all: deps test clean build
# test all packages
test:
$(GOTEST) -v ./...
# get all packages
deps:
$(GOGET) -v ./...
# static analysis
static:
$(GOVET) ./...
clean:
rm -rf $(SAMBUILD)PrismaAlertDispatcher/dispatcher
rm -rf $(SAMBUILD)PrismaAlertNotification/snsalert
rm -rf $(SAMBUILD)PrismaVPCKiller/vpckiller
rm -rf $(SAMBUILD)PrismaFalseAlertRemover/remover
rm -rf $(SAMBUILD)PrismaOnboarding/onboarding
build:
GOOS=linux GOARCH=amd64 $(GOBUILD)PrismaAlertDispatcher/dispatcher ./remediation/dispatcher/main.go
GOOS=linux GOARCH=amd64 $(GOBUILD)PrismaAlertNotification/snsalert ./remediation/snsalert/snsalert.go
GOOS=linux GOARCH=amd64 $(GOBUILD)PrismaVPCKiller/vpckiller ./remediation/vpckiller/vpckiller.go
GOOS=linux GOARCH=amd64 $(GOBUILD)PrismaFalseAlertRemover/remover ./remediation/falsealert/remover.go
GOOS=linux GOARCH=amd64 $(GOBUILD)PrismaOnboarding/onboarding ./remediation/onboarding/onboarding.go