forked from UMR-CNRM/EPyGrAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (33 loc) · 828 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
# Variables
TEST_DIR = tests
DOC_DIR = docs
SUBDIRS = $(TEST_DIR) $(DOC_DIR)
CLEANDIRS = $(SUBDIRS:%=clean-%)
.PHONY: tests doc tar tar_doc tar_tests clear_doc clean $(CLEANDIRS)
# TARGETS:
# Run all the test suite using nose
tests:
$(MAKE) -C $(TEST_DIR) tests
$(MAKE) -C $(TEST_DIR) apptools
# Build the sphinx documentation
doc:
$(MAKE) -C $(DOC_DIR)
# Tarball for export
tar:
bash ./mktar.sh
# Tarball for export
tar_doc:
$(MAKE) -C $(DOC_DIR) tar_doc
# Tarball for export
tar_tests:
$(MAKE) -C $(TEST_DIR) tar_tests
# Clean all the directories, then locally
clean: $(CLEANDIRS)
find . -name "*.pyc" -print0 | xargs -0r rm
find . -name "__pycache__" -print0 | xargs -0r rm -r
$(CLEANDIRS):
$(MAKE) -C $(@:clean-%=%) clean
clear_doc:
$(MAKE) -C $(DOC_DIR) clear_doc
# Usual target
clobber: clean