wayland-screenshot/Makefile
2023-02-06 18:14:14 +03:00

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