csctl/Makefile

15 lines
306 B
Makefile
Raw Normal View History

2020-12-18 20:28:27 -05:00
commands := $(wildcard .*.go)
2020-12-18 20:25:22 -05:00
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