forked from TheMarex/i3-gnome
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
45 lines (35 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Global Settings
#
INSTALL = install
DESTDIR ?= /
PREFIX ?= $(DESTDIR)/usr
PATH_DWM_GNOME = $(PREFIX)/bin/dwm-gnome
PATH_DWM_GNOME_DESKTOP = $(PREFIX)/share/applications/dwm-gnome.desktop
PATH_DWM_GNOME_SESSION = $(PREFIX)/share/gnome-session/sessions/dwm-gnome.session
PATH_DWM_GNOME_XSESSION = $(PREFIX)/share/xsessions/dwm-gnome.desktop
PATH_GNOME_SESSION_DWM = $(PREFIX)/bin/gnome-session-dwm
PATH_DOCS = $(PREFIX)/share/docs/dwm-gnome
PATH_LICENSE = $(PREFIX)/share/licenses/dwm-gnome
#
# Targets
#
all:
@echo "Nothing to do"
install:
$(INSTALL) -m0644 -D session/dwm-gnome-xsession.desktop $(PATH_DWM_GNOME_XSESSION)
$(INSTALL) -m0644 -D session/dwm-gnome.desktop $(PATH_DWM_GNOME_DESKTOP)
$(INSTALL) -m0644 -D session/dwm-gnome.session $(PATH_DWM_GNOME_SESSION)
$(INSTALL) -m0755 -D session/dwm-gnome $(PATH_DWM_GNOME)
$(INSTALL) -m0755 -D session/gnome-session-dwm $(PATH_GNOME_SESSION_DWM)
$(INSTALL) -m0644 -D README.md $(PATH_DOCS)/README.md
$(INSTALL) -m0644 -D LICENSE.txt $(PATH_LICENSE)/LICENSE
uninstall:
rm -f $(PATH_DWM_GNOME)
rm -f $(PATH_DWM_GNOME_DESKTOP)
rm -f $(PATH_DWM_GNOME_SESSION)
rm -f $(PATH_DWM_GNOME_XSESSION)
rm -f $(PATH_GNOME_SESSION_DWM)
rm -rf $(PATH_DOCS)
rm -rf $(PATH_LICENSE)
.PHONY: all install uninstall