File: Makefile

package info (click to toggle)
firejail 0.9.78-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,336 kB
  • sloc: ansic: 47,244; exp: 10,586; sh: 1,499; makefile: 684; python: 505; awk: 32
file content (26 lines) | stat: -rw-r--r-- 612 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
25
26
.SUFFIXES:
ROOT = ..
-include $(ROOT)/config.mk

RM ?= rm -f

TESTS=$(patsubst %/,%,$(wildcard */))

.PHONY: $(TESTS)
$(TESTS):
	cd $@ && ./$@.sh 2>&1 | tee $@.log
	cd $@ && grep -a TESTING $@.log && ! grep -a -q "TESTING ERROR" $@.log

.PHONY: clean
clean:
	for test in $(TESTS); do $(RM) "$$test/$$test.log"; done
	$(RM) -r environment/-testdir
	$(RM) environment/index.html*
	$(RM) environment/logfile*
	$(RM) environment/wget-log*
	$(RM) sysutils/firejail_t*
	$(RM) utils/firejail-test-file*
	$(RM) utils/index.html*
	$(RM) utils/lstesting
	$(RM) utils/wget-log
	cd compile && (./compile.sh --clean || true)