aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index dbb4e39..ee9c5a9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
1 1
2APP_ID = org.gnunet.Messenger
3
2RESOURCES_DIR = resources/ 4RESOURCES_DIR = resources/
3SOURCE_DIR = src/ 5SOURCE_DIR = src/
4INSTALL_DIR ?= /usr/local/ 6INSTALL_DIR ?= /usr/local/
@@ -96,24 +98,26 @@ mobile: $(BINARY)
96.PHONY: install 98.PHONY: install
97 99
98define install-icon 100define install-icon
99 install -Dm644 $(addprefix $(APPICON_DIR), full_color_$(1).png) $(addprefix $(INSTALL_DIR), share/icons/hicolor/$(1)x$(1)/apps/$(BINARY).png) 101 install -Dm644 $(addprefix $(APPICON_DIR), full_color_$(1).png) $(addprefix $(INSTALL_DIR), share/icons/hicolor/$(1)x$(1)/apps/$(APP_ID).png)
100endef 102endef
101 103
102install: 104install:
103 install -Dm755 $(BINARY) $(addprefix $(INSTALL_DIR), bin/) 105 install -Dm755 $(BINARY) $(addprefix $(INSTALL_DIR), bin/)
104 $(foreach SIZE,$(ICON_SIZES),$(call install-icon,$(SIZE));) 106 $(foreach SIZE,$(ICON_SIZES),$(call install-icon,$(SIZE));)
105 install -Dm644 $(addprefix $(RESOURCES_DIR), $(BINARY).desktop) $(addprefix $(INSTALL_DIR), share/applications/) 107 install -Dm644 $(addprefix $(APPICON_DIR), full_color.svg) $(addprefix $(INSTALL_DIR), share/icons/hicolor/scalable/apps/$(APP_ID).svg)
108 desktop-file-install --dir=$(addprefix $(INSTALL_DIR), share/applications/) $(addprefix $(RESOURCES_DIR), $(APP_ID).desktop)
106 109
107.PHONY: uninstall 110.PHONY: uninstall
108 111
109define uninstall-icon 112define uninstall-icon
110 $(GNU_RM) -f $(addprefix $(INSTALL_DIR), share/icons/hicolor/$(1)x$(1)/apps/$(BINARY).png) 113 $(GNU_RM) -f $(addprefix $(INSTALL_DIR), share/icons/hicolor/$(1)x$(1)/apps/$(APP_ID).png)
111endef 114endef
112 115
113uninstall: 116uninstall:
114 $(GNU_RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/)) 117 $(GNU_RM) -f $(addsuffix $(BINARY), $(addprefix $(INSTALL_DIR), bin/))
115 $(foreach SIZE,$(ICON_SIZES),$(call uninstall-icon,$(SIZE))) 118 $(foreach SIZE,$(ICON_SIZES),$(call uninstall-icon,$(SIZE));)
116 $(GNU_RM) -f $(addsuffix $(BINARY).desktop, $(addprefix $(INSTALL_DIR), share/applications/)) 119 $(GNU_RM) -f $(addprefix $(INSTALL_DIR), share/icons/hicolor/scalable/apps/$(APP_ID).svg)
120 $(GNU_RM) -f $(addsuffix $(APP_ID).desktop, $(addprefix $(INSTALL_DIR), share/applications/))
117 121
118.PHONY: clean 122.PHONY: clean
119 123