~hristoast/wem

ref: 7b62435662a80e0a30f1b81042e7f4198db740b6 wem/Makefile -rw-r--r-- 977 bytes
7b624356Hristos N. Triantafillou Set WINE_LARGE_ADDRESS_AWARE=1 when DXVK is in use (#10) 1 year, 2 months ago
                                                                                
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
proj_dir := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))

.DEFAULT_GOAL:= rebuild

build:
	GOPATH=$$HOME/.local/go go build -o $(proj_dir)/wem $(proj_dir)/wem.go

clean:
	rm -frv $(proj_dir)/wem rm -frv $(proj_dir)/wem.tar.bz2 $(proj_dir)/wem.6
	cd $(proj_dir)/test && make clean

install: rebuild
	install -D wem /opt/wem/bin

manpage:
	cd $(proj_dir) && md2man-roff manpage.md > wem.6

rebuild: clean test

pkg: rebuild
	$(proj_dir)/package.sh

# The build target is a requirement for test because the
# tests themselves depend on having a usable WEM executable.
test: clean build test-exes
	cd $(proj_dir) && GOPATH=$$HOME/.local/go go test -cover ./...

test-exes:
	cd $(proj_dir)/test && make

docker-build-image:
	cd $(proj_dir) && command sudo docker build -t wem:$$(git describe --tags) .

docker-build-wem:
	cd $(proj_dir) && command sudo docker run -v $(proj_dir):/mnt -it --rm wem:$$(git describe --tags)

docker-pkg: docker-build-image docker-build-wem