forked from glsorre/i3-gnome
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
41 lines (29 loc) · 1.1 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
#
# Global Settings
#
INSTALL = install
DESTDIR ?= /
PREFIX ?= $(DESTDIR)/usr
PATH_AWESOME_GNOME = $(PREFIX)/bin/awesome-gnome
PATH_AWESOME_GNOME_DESKTOP = $(PREFIX)/share/applications/awesome-gnome.desktop
PATH_AWESOME_GNOME_SESSION = $(PREFIX)/share/gnome-session/sessions/awesome-gnome.session
PATH_AWESOME_GNOME_XSESSION = $(PREFIX)/share/xsessions/awesome-gnome.desktop
PATH_GNOME_SESSION_AWESOME = $(PREFIX)/bin/gnome-session-awesome
#
# Targets
#
all:
@echo "Nothing to do"
install:
$(INSTALL) -m0644 -D session/awesome-gnome-xsession.desktop $(PATH_AWESOME_GNOME_XSESSION)
$(INSTALL) -m0644 -D session/awesome-gnome.desktop $(PATH_AWESOME_GNOME_DESKTOP)
$(INSTALL) -m0644 -D session/awesome-gnome.session $(PATH_AWESOME_GNOME_SESSION)
$(INSTALL) -m0755 -D session/awesome-gnome $(PATH_AWESOME_GNOME)
$(INSTALL) -m0755 -D session/gnome-session-awesome $(PATH_GNOME_SESSION_AWESOME)
uninstall:
rm -f $(PATH_AWESOME_GNOME)
rm -f $(PATH_AWESOME_GNOME_DESKTOP)
rm -f $(PATH_AWESOME_GNOME_SESSION)
rm -f $(PATH_AWESOME_GNOME_XSESSION)
rm -f $(PATH_GNOME_SESSION_AWESOME)
.PHONY: all install uninstall