mirror of
https://github.com/agresdominik/dev-templates.git
synced 2026-04-21 18:05:49 +00:00
23 lines
517 B
Plaintext
23 lines
517 B
Plaintext
.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)
|