GOMODULE=$(SRCDIR)/go_component .PHONY: all clean csonar_facing all: GoComponent GoComponent: $(GOMODULE)/go_component.go $(GOMODULE)/go.mod cd "$(GOMODULE)" && go build -o ../GoComponent # Invoke codesonar go_scan.py to analyze our Go source file with Staticcheck, # then import the SARIF results and the source file into the CodeSonar project. csonar_facing: $(GOMODULE)/go_component.go "$(CSONAR)"/codesonar/bin/codesonar go_scan.py go_component.go -C "$(GOMODULE)" clean: rm GoComponent