-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 786 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 786 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
# 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/tyde_runner
go build ./cmd/tyde
install:
install -Dm00755 tyde_runner $(DESTDIR)$(PREFIX)/bin/tyde_runner
install -Dm00755 tyde $(DESTDIR)$(PREFIX)/bin/tyde
install -Dm00644 tyde.desktop $(DESTDIR)$(PREFIX)/share/xsessions/tyde.desktop
uninstall:
-rm $(DESTDIR)$(PREFIX)/bin/tyde_runner
-rm $(DESTDIR)$(PREFIX)/bin/tyde
-rm $(DESTDIR)$(PREFIX)/share/xsessions/tyde.desktop
embed:
Xephyr :5 -screen 1280x720 &
DISPLAY=:5 go run -tags migrated_fynedo ./cmd/tyde