-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (42 loc) · 1.4 KB
/
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
45
46
47
48
49
50
51
PYMODULES := $(shell bin/ls-py-modules)
DB_MODULES = swh-storage swh-archiver swh-scheduler swh-indexer swh-scheduler/sql/updater
DOC_MODULE = swh-docs
all:
# TODO this is too close to "docs" below, but is meant to go away anyhow, when
# the dependency graph stuff will migrate to the swh-docs/ module
.PHONY: doc
doc:
make -C doc/
check: $(patsubst %,check/%,$(PYMODULES))
typecheck: $(patsubst %,typecheck/%,$(PYMODULES))
distclean: $(patsubst %,distclean/%,$(PYMODULES))
test: $(patsubst %,test/%,$(PYMODULES))
docs: $(patsubst %,docs/%,$(filter-out $(DOC_MODULE),$(PYMODULES)))
docs-assets: $(patsubst %,docs-assets/%,$(filter-out $(DOC_MODULE),$(PYMODULES)))
docs-apidoc: $(patsubst %,docs-apidoc/%,$(filter-out $(DOC_MODULE),$(PYMODULES)))
docs-clean: $(patsubst %,docs-clean/%,$(filter-out $(DOC_MODULE),$(PYMODULES)))
check/%:
make -C $* check
typecheck/%:
make -C $* typecheck
distclean/%:
make -C $* distclean
test/%:
make -C $* test
docs/%:
if test -e $*/docs/Makefile; then make -I swh-docs -C $*/docs; fi
docs-assets/%:
if test -e $*/docs/Makefile; then make -I swh-docs -C $*/docs assets; fi
docs-apidoc/%:
if test -e $*/docs/Makefile; then make -I swh-docs -C $*/docs apidoc; fi
docs-clean/%:
if test -e $*/docs/Makefile; then make -I swh-docs -C $*/docs clean; fi
.PHONY: update clean
update:
git pull
mr up
clean:
make -C doc/ clean
.PHONY: check-staged
check-staged:
make -C docker/ check-staged