forked from herbstluftwm/herbstluftwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 743 Bytes
/
Makefile
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
38
39
40
41
42
43
44
## Wrapper around cmake
VERSION = $(shell cat VERSION)
.PHONY: all all-nodoc doc
BUILDDIR = build
all: $(BUILDDIR)
cd $(BUILDDIR) && $(MAKE)
@echo The compilation result can be found in $(BUILDDIR)/
$(BUILDDIR):
mkdir -p $@
cd $@ && cmake ..
clean:
rm -r $(BUILDDIR)/
.PHONY: smoke-test
smoke-test: all
$(MAKE) tox EXTRA_TOX_ARGS="-m 'not exclude_from_coverage'"
.PHONY: long-test
long-test: all
$(MAKE) tox EXTRA_TOX_ARGS="-m 'exclude_from_coverage'"
.PHONY: test
test: smoke-test long-test
.PHONY: tox
tox: all
cd $(BUILDDIR); tox -c .. -- -v --maxfail=1 $(EXTRA_TOX_ARGS)
.PHONY: flake8
flake8:
flake8
.PHONY: check-using-std
check-using-std:
./ci/check-using-std.sh
.PHONY: check
check: check-using-std flake8 test