forked from dynamomd/DynamO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (24 loc) · 860 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
#A simple wrapper Makefile around the boost build system
all:
echo "### Building release version of DynamO"
mkdir -p build-dir
bjam install toolset=gcc
debug:
echo "### Building debug version of DynamO"
bjam debug toolset=gcc
test:
echo "### Testing DynamO software"
bjam test toolset=gcc
docs:
echo "### Building DynamO documentation"
doxygen
clean:
rm -Rf build-dir
install: all
if [ -d ./bin ]; then mkdir -p $(DESTDIR)/usr/bin/; cp -R bin/* $(DESTDIR)/usr/bin/; fi
if [ -d ./lib ]; then mkdir -p $(DESTDIR)/usr/lib/; cp -R lib/* $(DESTDIR)/usr/lib/; fi
if [ -d ./include ]; then mkdir -p $(DESTDIR)/usr/include/; cp -R include/* $(DESTDIR)/usr/include/; fi
distclean:
rm -Rf build-dir lib/ include/ bin/dynarun bin/dynamod bin/dynahist_rw
.PHONY: all install distclean test docs
.SILENT: install all debug test docs clean distclean