forked from FyshOS/fynedesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (19 loc) · 823 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
# If PREFIX isn't provided, we check for /usr/local and use that if it exists.
# Otherwice we fall back to using /usr.
LOCAL != test -d $(DESTDIR)/usr/local && echo -n "/local" || echo -n ""
LOCAL ?= $(shell test -d $(DESTDIR)/usr/local && echo "/local" || echo "")
PREFIX ?= /usr$(LOCAL)
build:
go build ./cmd/fynedesk_runner
go build ./cmd/fynedesk
install:
install -Dm00755 fynedesk_runner $(DESTDIR)$(PREFIX)/bin/fynedesk_runner
install -Dm00755 fynedesk $(DESTDIR)$(PREFIX)/bin/fynedesk
install -Dm00644 fynedesk.desktop $(DESTDIR)$(PREFIX)/share/xsessions/fynedesk.desktop
uninstall:
-rm $(DESTDIR)$(PREFIX)/bin/fynedesk_runner
-rm $(DESTDIR)$(PREFIX)/bin/fynedesk
-rm $(DESTDIR)$(PREFIX)/share/xsessions/fynedesk.desktop
embed:
DISPLAY=:0 Xephyr :1 -screen 1280x720 &
DISPLAY=:1 go run ./cmd/fynedesk