Base Templates

This commit is contained in:
2025-12-10 20:39:40 +01:00
commit 10dfdd5605
7 changed files with 120 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
.PHONY ...
EXECUTABLE = cheatsh
PACKAGES = ./src/.
SYSCONFDIR = $(HOME)/.config/cheatsh
PREFIX ?= $(HOME)/.local
build:
# build block
install: build
@echo "Installing binary in $(PREFIX)"
install -Dm755 bin/$(EXECUTABLE) $(PREFIX)/bin/$(EXECUTABLE)
@echo "Copying config files to $(SYSCONFDIR)"
install -Dm644 data/commands.json $(SYSCONFDIR)/commands.json
install -Dm644 data/commands_template.json $(SYSCONFDIR)/commands_template.json
uninstall:
rm -f $(PREFIX)/bin/$(EXECUTABLE)
rm -rf $(SYSCONFDIR)