csctl/Makefile

15 lines
309 B
Makefile

commands := $(wildcard cmd/*.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