-
Notifications
You must be signed in to change notification settings - Fork 87
/
Makefile
82 lines (63 loc) · 1.98 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
all: covise addons-dep python-dep
always_out_of_date:
verbose: always_out_of_date
cd src && $(MAKE) verbose
cd Python && $(MAKE)
bin: covise addons-dep
python-dep: covise addons-dep
$(MAKE) python
python:
ifdef PYTHON_HOME
cd Python && $(MAKE)
else
@echo "PYTHON_HOME not set, disabling Python support"
endif
covise: always_out_of_date
cd src && $(MAKE)
addons-dep: covise
$(MAKE) addons
addons:
@for dir in $${COVISE_ADDONS}; do \
export BUILDDIR=$${COVISEDIR}/$${ARCHSUFFIX}/build.addon-$$(basename $${dir}); \
mkdir -p $${BUILDDIR} && \
cd $${BUILDDIR} && \
export ICECC=no && \
$(COVISE_CMAKE) $${COVISE_CMAKE_OPTIONS} $${dir} && \
export ICECC= && \
make; \
done
doc: always_out_of_date
cd doc && $(MAKE) html
cd doc && $(MAKE) pdf
cd doc && $(MAKE) doxygen
docclean:
cd doc && $(MAKE) clean
package: dist
archive: dist
dist: always_out_of_date
cd archive && $(MAKE)
archdist: always_out_of_date
cd archive && $(MAKE) arch
shareddist: always_out_of_date
cd archive && $(MAKE) shared
install: always_out_of_date
$(MAKE) -f src/Makefile.default install
clean:
cd src && $(MAKE) clean
cd Python && $(MAKE) clean
test -n "$${ARCHSUFFIX}" && $(RM) -rf "$${ARCHSUFFIX}/lib" "$${ARCHSUFFIX}/bin" || exit 0
makefiles depend:
cd src && $(MAKE) makefiles
indent:
test -n "$${COVISEDIR}" && cd src/kernel/api && find . \( -name "*.h" -o -name "*.c" -o -name "*.cpp" \) -print -exec ${COVISEDIR}/script/indent.sh \{\} \;
help:
@echo 'available make targets:'
@echo ' makefiles recreate all Makefile.'$${ARCHSUFFIX}
@echo ' bin compile everything'
@echo ' clean remove everything built by "bin"'
@echo ' doc generate pdf & html documentation'
@echo ' docclean remove everything built by "doc"'
@echo ' dist archive SHARED and '$${ARCHSUFFIX}' parts'
@echo ' shareddist archive SHARED parts'
@echo ' archdist archive '$${ARCHSUFFIX}' parts'
@echo ' indent reindent source files'