File: Makefile

package info (click to toggle)
perceptualdiff 2.1-7.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,232 kB
  • sloc: cpp: 1,100; sh: 116; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
default: build

NUM_JOBS := $(shell getconf _NPROCESSORS_ONLN)

build:
	mkdir -p build
	test -f build/Makefile || cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
	$(MAKE) --directory=build --jobs=$(NUM_JOBS)

sanitizer:
	mkdir -p build
	test -f build/Makefile || cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release -DSANITIZERS=ON
	$(MAKE) --directory=build --jobs=$(NUM_JOBS) check

clean:
	rm -rf build

install: build
	$(MAKE) --directory=build install

test: build
	./test/run_tests.bash

.PHONY: build clean