.ONESHELL: all: for i in blocks/*; do go build -ldflags '-s -w' -v -o "build/$$(basename "$$i")" "$$i/main.go" done clean: rm build/* 2>/dev/null || true .ONESHELL: run-code-quality-analysis: export SONAR_TOKEN="$$SONAR_TOKEN_DEBLAN_I3_BLOCKS_GO" sonar-scanner -Dsonar.projectKey=deblan-i3-blocks-go -Dsonar.sources=. -Dsonar.host.url="$$SONAR_SERVER"