-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
39 lines (29 loc) · 1.06 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
#
# Global Settings
#
INSTALL = install
DESTDIR ?= /
PREFIX ?= $(DESTDIR)/usr
PATH_I3_CINNAMON = $(PREFIX)/bin/i3-cinnamon
PATH_I3_CINNAMON_SESSION_BIN = $(PREFIX)/bin/cinnamon-session-i3
PATH_I3_CINNAMON_DESKTOP = $(PREFIX)/share/applications/i3-cinnamon.desktop
PATH_I3_CINNAMON_SESSION = $(PREFIX)/share/cinnamon-session/sessions/i3-cinnamon.session
PATH_I3_CINNAMON_XSESSION = $(PREFIX)/share/xsessions/i3-cinnamon.desktop
#
# Targets
#
all:
@echo "Nothing to do"
install:
$(INSTALL) -m0644 -D session/i3-cinnamon-xsession.desktop $(PATH_I3_CINNAMON_XSESSION)
$(INSTALL) -m0644 -D session/i3-cinnamon.desktop $(PATH_I3_CINNAMON_DESKTOP)
$(INSTALL) -m0644 -D session/i3-cinnamon.session $(PATH_I3_CINNAMON_SESSION)
$(INSTALL) -m0755 -D session/cinnamon-session-i3 $(PATH_I3_CINNAMON_SESSION_BIN)
$(INSTALL) -m0755 -D session/i3-cinnamon $(PATH_I3_CINNAMON)
uninstall:
rm -f $(PATH_I3_CINNAMON)
rm -f $(PATH_I3_CINNAMON_DESKTOP)
rm -f $(PATH_I3_CINNAMON_SESSION)
rm -f $(PATH_I3_CINNAMON_SESSION_BIN)
rm -f $(PATH_I3_CINNAMON_XSESSION)
.PHONY: all install uninstall