aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 67bc9db7a045260fc49d85a03eb342a4cdb53326 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: clean build test

all: build

build:
	@mkdir -p build
	@cd build/ && cmake .. && make -j4
	# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/lib/* ./build/lib/
	# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/share/cef/* ./build/lib/
	@cp build/compile_commands.json .

test: build
	cd build && QT_QPA_PLATFORM=offscreen ctest -V

clean:
	rm -rf build/
	rm -f compile_commands.json

run: build
	./build/web-browser