aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e593d6917ec3d748cabcf4e089465076c8bf9d19 (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/null-browser