Add simple (if ugly) settings dialog

This commit is contained in:
2022-05-05 01:14:53 -07:00
parent fcb997bfb3
commit 6420278f71
7 changed files with 344 additions and 15 deletions

View File

@ -4,7 +4,9 @@ PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBEXECDIR ?= $(PREFIX)/libexec
SYSCONFDIR ?= $(PREFIX)/etc
DATADIR ?= $(PREFIX)/share
APPLICATIONS_DIR = $(DATADIR)/applications
CONFIG_DIR = $(SYSCONFDIR)/xdg/bscreensaver
HELPER_DIR = $(LIBEXECDIR)/bscreensaver
HELPERS = \
@ -26,16 +28,17 @@ dev:
HELPER_DIR=target/debug cargo build
install: release
$(INSTALL) -m 0755 -d $(BINDIR) $(HELPER_DIR) $(CONFIG_DIR)
$(INSTALL) -m 0755 target/release/bscreensaver target/release/bscreensaver-command $(BINDIR)
$(INSTALL) -m 0755 -d $(BINDIR) $(HELPER_DIR) $(CONFIG_DIR) $(APPLICATIONS_DIR)
$(INSTALL) -m 0755 target/release/bscreensaver target/release/bscreensaver-command target/release/bscreensaver-settings $(BINDIR)
$(INSTALL) -m 0755 $(addprefix target/release/,$(HELPERS)) $(HELPER_DIR)
$(INSTALL) -m 0644 bscreensaver.toml.example $(CONFIG_DIR)
$(INSTALL) -m 0644 settings/bscreensaver-settings.desktop $(APPLICATIONS_DIR)
clean:
cargo clean
uninstall:
rm -f $(BINDIR)/bscreensaver $(BINDIR)/bscreensaver-command $(addprefix $(HELPER_DIR)/,$(HELPERS)) || true
rm -f $(BINDIR)/bscreensaver $(BINDIR)/bscreensaver-command $(BINDIR)/bscreensaver-settings $(addprefix $(HELPER_DIR)/,$(HELPERS)) || true
rmdir -p $(BINDIR) $(HELPER_DIR) || true
rmdir -p $(PREFIX) || true