feat: add Arch update helper and web UI
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
BINARY := lazy-update-manager
|
||||
PREFIX ?= $(HOME)/.local
|
||||
|
||||
.PHONY: build install install-user-service enable-user-service test fmt clean
|
||||
|
||||
build:
|
||||
go build -buildvcs=false -o bin/$(BINARY) ./cmd/lazy-update-manager
|
||||
|
||||
install: build
|
||||
install -Dm755 bin/$(BINARY) $(PREFIX)/bin/$(BINARY)
|
||||
install -Dm644 systemd/lazy-update-manager.desktop $(PREFIX)/share/applications/lazy-update-manager.desktop
|
||||
|
||||
install-user-service: install
|
||||
install -Dm644 systemd/lazy-update-manager.service $(HOME)/.config/systemd/user/lazy-update-manager.service
|
||||
install -Dm644 systemd/lazy-update-manager.timer $(HOME)/.config/systemd/user/lazy-update-manager.timer
|
||||
systemctl --user daemon-reload
|
||||
|
||||
enable-user-service: install-user-service
|
||||
systemctl --user enable --now lazy-update-manager.timer
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
fmt:
|
||||
gofmt -w ./cmd ./internal
|
||||
|
||||
clean:
|
||||
rm -rf bin
|
||||
Reference in New Issue
Block a user