-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (28 loc) · 964 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
default_target: all
# get a list of subdirs to build by reading tobuild.txt
SUBDIRS:=$(shell grep -v "^\#" tobuild.txt)
#force to build on the top level build dir
BUILD_PREFIX=`pwd`/build
# build quietly by default. For a verbose build, run "make VERBOSE=1"
$(VERBOSE).SILENT:
all:
@[ -d $(BUILD_PREFIX) ] || mkdir -p $(BUILD_PREFIX) || exit 1
@for subdir in $(SUBDIRS); do \
echo "\n-------------------------------------------"; \
echo "-- $$subdir"; \
echo "-------------------------------------------"; \
$(MAKE) -C $$subdir all || exit 2; \
done
@# Place additional commands here if you have any
clean:
@for subdir in $(SUBDIRS); do \
echo "\n-------------------------------------------"; \
echo "-- $$subdir"; \
echo "-------------------------------------------"; \
$(MAKE) -C $$subdir clean; \
done
rm -rf build/bin
rm -rf build/include
rm -rf build/lib
rm -rf build/share
@# Place additional commands here if you have any