wayland-screenshot/Makefile

25 lines
414 B
Makefile
Raw Permalink Normal View History

2023-02-06 18:14:14 +03:00
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