forked from djcas9/i3-gnome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (36 loc) · 1.3 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
46
47
#
# Global Settings
#
INSTALL = install
DESTDIR ?= /
PREFIX ?= $(DESTDIR)/usr
PATH_STUMPWM_GNOME = $(PREFIX)/bin/stumpwm-gnome
PATH_STUMPWM_GNOME_DESKTOP = $(PREFIX)/share/applications/stumpwm-gnome.desktop
PATH_STUMPWM_GNOME_SESSION = $(PREFIX)/share/gnome-session/sessions/stumpwm-gnome.session
PATH_STUMPWM_GNOME_XSESSION = $(PREFIX)/share/xsessions/stumpwm-gnome.desktop
PATH_STUMPWM_GNOME_SYSTEMD = $(PREFIX)/lib/systemd/user/[email protected]
ifeq (,$(FLAVOR))
SESSION_DIR=session
else
SESSION_DIR=session.$(FLAVOR)
endif
#
# Targets
#
all:
@echo "Nothing to do"
install:
$(INSTALL) -m0644 -D $(SESSION_DIR)/stumpwm-gnome-xsession.desktop $(PATH_STUMPWM_GNOME_XSESSION)
$(INSTALL) -m0644 -D $(SESSION_DIR)/stumpwm-gnome.desktop $(PATH_STUMPWM_GNOME_DESKTOP)
$(INSTALL) -m0644 -D $(SESSION_DIR)/stumpwm-gnome.session $(PATH_STUMPWM_GNOME_SESSION)
$(INSTALL) -m0755 -D $(SESSION_DIR)/stumpwm-gnome $(PATH_STUMPWM_GNOME)
ifneq (,$(wildcard $(SESSION_DIR)/stumpwm-gnome.target))
$(INSTALL) -m0644 -D $(SESSION_DIR)/stumpwm-gnome.target $(PATH_STUMPWM_GNOME_SYSTEMD)
endif
uninstall:
rm -f $(PATH_STUMPWM_GNOME)
rm -f $(PATH_STUMPWM_GNOME_DESKTOP)
rm -f $(PATH_STUMPWM_GNOME_SESSION)
rm -f $(PATH_STUMPWM_GNOME_XSESSION)
rm -f $(PATH_STUMPWM_GNOME_SYSTEMD)
.PHONY: all install uninstall