csctl/Makefile

15 lines
302 B
Makefile

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