commands := $(wildcard .*.go) all: build build: @GO111Module=on go build -v -ldflags="-s -w" -buildmode=pie -o csctl ${commands} @sudo chmod 2751 ./csctl @file ./csctl install: @sudo cp cscli /usr/local/bin/csctl @sudo chown root:cscli /usr/local/hbin/csctl @sudo chmod 2751 /usr/local/bin/csctl