-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 908 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (26 loc) · 908 Bytes
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
##
# ade-setup — ADE session entry scripts and .desktop files
#
# @file
# @version 0.1
PREFIX?=/usr/local/bin
SUDO?=
DESKTOPDIR?=/usr/local/share/wayland-sessions
XDESKTOPDIR?=/usr/local/share/xsessions
.PHONY: all install
all: install
.PHONY: install
install:
@echo "Don't forget to set SUDO=sudo (or SUDO=doas) before this command!"
@echo "for example: SUDO=doas make install"
$(SUDO) install -m 755 ./bin/ade-wayland $(PREFIX)/ade-wayland
$(SUDO) install -m 755 ./bin/ade-xlibre $(PREFIX)/ade-xlibre
$(SUDO) install -m 755 ./bin/ade-session-lib.sh $(PREFIX)/ade-session-lib.sh
$(SUDO) install -d $(DESKTOPDIR)
$(SUDO) install -m 644 ./res/ade.desktop $(DESKTOPDIR)/ade.desktop
$(SUDO) install -d $(XDESKTOPDIR)
$(SUDO) install -m 644 ./res/ade-xlibre.desktop $(XDESKTOPDIR)/ade-xlibre.desktop
.PHONY: check
check:
sh -n ./bin/ade-wayland ./bin/ade-xlibre ./bin/ade-session-lib.sh
# end