mirror of
https://github.com/agresdominik/dev-templates.git
synced 2026-04-21 18:05:49 +00:00
Base Templates
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user