forked from i3-gnome/i3-gnome
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
41 lines (29 loc) · 1002 Bytes
/
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
#
# Global Settings
#
INSTALL = install
DESTDIR ?= /
PREFIX ?= $(DESTDIR)/usr
PATH_I3_GNOME = $(PREFIX)/bin/i3-gnome
PATH_I3_GNOME_DESKTOP = $(PREFIX)/share/applications/i3-gnome.desktop
PATH_I3_GNOME_SESSION = $(PREFIX)/share/gnome-session/sessions/i3-gnome.session
PATH_I3_GNOME_XSESSION = $(PREFIX)/share/xsessions/i3-gnome.desktop
PATH_GNOME_SESSION_I3 = $(PREFIX)/bin/gnome-session-i3
#
# Targets
#
all:
@echo "Nothing to do"
install:
$(INSTALL) -m0644 -D session/i3-gnome-xsession.desktop $(PATH_I3_GNOME_XSESSION)
$(INSTALL) -m0644 -D session/i3-gnome.desktop $(PATH_I3_GNOME_DESKTOP)
$(INSTALL) -m0644 -D session/i3-gnome.session $(PATH_I3_GNOME_SESSION)
$(INSTALL) -m0755 -D session/i3-gnome $(PATH_I3_GNOME)
$(INSTALL) -m0755 -D session/gnome-session-i3 $(PATH_GNOME_SESSION_I3)
uninstall:
rm -f $(PATH_I3_GNOME)
rm -f $(PATH_I3_GNOME_DESKTOP)
rm -f $(PATH_I3_GNOME_SESSION)
rm -f $(PATH_I3_GNOME_XSESSION)
rm -f $(PATH_GNOME_SESSION_I3)
.PHONY: all install uninstall