This commit is contained in:
2023-02-06 18:14:14 +03:00
commit 6d0e1409bd
8 changed files with 758 additions and 0 deletions

25
Makefile Executable file
View File

@ -0,0 +1,25 @@
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