-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.mk
51 lines (45 loc) · 1.25 KB
/
Makefile.mk
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
MAKEFILE := $(lastword $(MAKEFILE_LIST))
MAKE := $(MAKE) -f $(MAKEFILE)
SUBDIRS = src man tools doc
ALLDIRS = include $(SUBDIRS) maxima matlab python cmake
all: src man tools
$(SUBDIRS):
$(MAKE) -C $@
tools: src
install: install-headers install-lib install-tools install-man install-cmake \
install-doc install-matlab install-python
clean: clean-src clean-tools clean-doc clean-man clean-matlab clean-python
install-headers:
$(MAKE) -C include install
install-lib:
$(MAKE) -C src install
install-tools: src
$(MAKE) -C tools install
install-cmake:
$(MAKE) -C cmake install
install-doc: doc
$(MAKE) -C doc install
install-man: man
$(MAKE) -C man install
install-matlab: matlab
$(MAKE) -C matlab install
install-python: python
$(MAKE) -C python install
clean-src:
$(MAKE) -C src clean
clean-tools:
$(MAKE) -C tools clean
clean-doc:
$(MAKE) -C doc clean
clean-man:
$(MAKE) -C man clean
clean-matlab: matlab
$(MAKE) -C matlab clean
clean-python: python
$(MAKE) -C python clean
VERSION:=$(shell grep '\bVERSION=' configure | cut -f2 -d\' | head -1)
.PHONY: all $(SUBDIRS) install \
install-headers install-lib install-tools install-cmake install-man \
install-matlab install-python \
clean clean-src clean-tools clean-doc clean-man clean-matlab \
clean-python