mirror of
https://github.com/makew0rld/amfora.git
synced 2025-01-03 14:56:27 -05:00
🔨 Install .desktop file to local dir
This commit is contained in:
parent
57b9d46b7a
commit
b2859160df
8
Makefile
8
Makefile
@ -12,9 +12,9 @@ ifeq ($(GIT_EXISTS), 0)
|
||||
COMMIT := $(shell git rev-parse --verify HEAD)
|
||||
endif
|
||||
|
||||
INSTALL := install -o root -g 0
|
||||
ROOT_INSTALL := install -o root -g 0
|
||||
INSTALL_DIR := /usr/local/bin
|
||||
DESKTOP_DIR := /usr/share/applications
|
||||
DESKTOP_DIR := ~/.local/share/applications/
|
||||
|
||||
.PHONY: all build install desktop clean uninstall fmt
|
||||
|
||||
@ -32,11 +32,11 @@ endif
|
||||
|
||||
install:
|
||||
@echo "Installing Amfora to $(INSTALL_DIR)"
|
||||
@$(INSTALL) -m 755 amfora $(INSTALL_DIR)
|
||||
@$(ROOT_INSTALL) -m 755 amfora $(INSTALL_DIR)
|
||||
|
||||
desktop:
|
||||
@echo "Setting up desktop file"
|
||||
@$(INSTALL) -m 644 amfora.desktop $(DESKTOP_DIR)
|
||||
@install -m 644 amfora.desktop $(DESKTOP_DIR)
|
||||
@update-desktop-database $(DESKTOP_DIR)
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user