1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-25 19:55:22 +00:00

🔨 Install .desktop file to local dir

This commit is contained in:
makeworld 2020-09-07 12:55:32 -04:00
parent 57b9d46b7a
commit b2859160df

View File

@ -12,9 +12,9 @@ ifeq ($(GIT_EXISTS), 0)
COMMIT := $(shell git rev-parse --verify HEAD) COMMIT := $(shell git rev-parse --verify HEAD)
endif endif
INSTALL := install -o root -g 0 ROOT_INSTALL := install -o root -g 0
INSTALL_DIR := /usr/local/bin INSTALL_DIR := /usr/local/bin
DESKTOP_DIR := /usr/share/applications DESKTOP_DIR := ~/.local/share/applications/
.PHONY: all build install desktop clean uninstall fmt .PHONY: all build install desktop clean uninstall fmt
@ -32,11 +32,11 @@ endif
install: install:
@echo "Installing Amfora to $(INSTALL_DIR)" @echo "Installing Amfora to $(INSTALL_DIR)"
@$(INSTALL) -m 755 amfora $(INSTALL_DIR) @$(ROOT_INSTALL) -m 755 amfora $(INSTALL_DIR)
desktop: desktop:
@echo "Setting up desktop file" @echo "Setting up desktop file"
@$(INSTALL) -m 644 amfora.desktop $(DESKTOP_DIR) @install -m 644 amfora.desktop $(DESKTOP_DIR)
@update-desktop-database $(DESKTOP_DIR) @update-desktop-database $(DESKTOP_DIR)
clean: clean: