csctl/Makefile

15 lines
303 B
Makefile
Raw Normal View History

2020-12-18 20:29:01 -05:00
#commands := $(wildcard .*.go)
2020-12-18 20:25:22 -05:00
all: build
build:
2020-12-18 20:29:01 -05:00
@GO111Module=on go build -v -ldflags="-s -w" -buildmode=pie -o csctl main.go
2020-12-18 20:25:22 -05:00
@sudo chmod 2751 ./csctl
@file ./csctl
install:
2020-12-18 20:31:10 -05:00
@sudo cp csctl /usr/local/bin/csctl
2020-12-18 20:25:22 -05:00
@sudo chown root:cscli /usr/local/hbin/csctl
@sudo chmod 2751 /usr/local/bin/csctl