forked from bjarneo/aether
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 796 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 796 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
34
35
.PHONY: build dev test clean aether-wp install
UNAME_S := $(shell uname -s)
WEBKIT_TAGS := $(shell pkg-config --exists webkit2gtk-4.0 2>/dev/null || echo "-tags webkit2_41")
aether-wp:
ifeq ($(UNAME_S),Linux)
go build -o build/bin/aether-wp ./cmd/aether-wp/
else
@echo "aether-wp is Linux-only (requires GTK+, gtk-layer-shell, GStreamer), skipping"
endif
build:
ifeq ($(UNAME_S),Linux)
$(MAKE) aether-wp
endif
wails build $(WEBKIT_TAGS)
install: build
ifeq ($(UNAME_S),Darwin)
cp build/bin/aether.app /Applications/Aether.app 2>/dev/null || \
cp build/bin/aether /usr/local/bin/aether
else
sudo cp build/bin/aether-wp /usr/bin/aether-wp
sudo cp build/bin/aether /usr/bin/aether
endif
dev:
wails dev $(WEBKIT_TAGS)
test:
go test ./internal/... ./cli/...
clean:
rm -rf build/bin