25 lines
414 B
Makefile
Executable File
25 lines
414 B
Makefile
Executable File
PROJ_NAME = wl-screenshot
|
|
|
|
MAIN_PATH = *.go
|
|
BUILD_PATH = build/package/
|
|
|
|
INSTALL_PATH = /usr/bin/
|
|
|
|
build: clean
|
|
go build --ldflags '-extldflags "-static"' -v -o $(BUILD_PATH)$(PROJ_NAME) $(MAIN_PATH)
|
|
|
|
install:
|
|
make build
|
|
sudo cp $(BUILD_PATH)$(PROJ_NAME) $(INSTALL_PATH)$(PROJ_NAME)
|
|
|
|
uninstall:
|
|
sudo rm $(INSTALL_PATH)$(PROJ_NAME)
|
|
|
|
clean:
|
|
rm -rf $(BUILD_PATH)*
|
|
|
|
tests:
|
|
go test ./...
|
|
|
|
lint:
|
|
golangci-lint run
|