-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
47 lines (33 loc) · 1.04 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
#!/bin/make
# Thanks to http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
# Author: A.C. van Rossum
# Date: 10 March, 2013
# License: LGPL v.3
# Company: Distributed Organisms B.V.
# Space-separated list of subdirectories that have to be made, the construction here is that
# make <TAB> will allow bash-completion for individual directories.
subdirs=aimtools rur-builder zmqserver
install_subdirs=$(addsuffix .install,$(subdirs))
.PHONY: subdir
subdir: $(subdirs)
.PHONY: $(subdirs)
$(subdirs):
$(MAKE) -C $@
.PHONY: all
all: $(subdirs)
# handle zmqconnect separately, because it depends on the rur-builder being installed
.PHONY: zmqconnect
zmqconnect:
$(MAKE) -C $@
.PHONY: zmqconnect.install
zmqconnect.install: %.install:
$(MAKE) -C $* install
install-subdirs: $(install_subdirs)
$(install_subdirs): %.install:
$(MAKE) -C $* install
install: install-subdirs
clean:
echo "Not implemented clean targets yet"
help:
@echo "Type make <TAB> to make a sub-project"
@echo "Type sudo make install <TAB> to install a sub-project"