86f819b54b4860122f1c8db4cc7f33e20d10d983
[cgds.git] / Makefile
1 LIBRARY = libcgds.so
2 INSTALL_PREFIX = /usr/local
3
4 src:
5 cd src && $(MAKE) && cd ..
6
7 test:
8 cd test && $(MAKE) && cd ..
9
10 doc:
11 cd doc && $(MAKE) && cd ..
12
13 clean:
14 cd src && $(MAKE) clean && cd ..
15 cd test && $(MAKE) clean && cd ..
16 cd doc && $(MAKE) clean && cd ..
17
18 install:
19 mkdir -p $(INSTALL_PREFIX)/lib/
20 cp src/obj/$(LIBRARY) $(INSTALL_PREFIX)/lib/
21 mkdir -p $(INSTALL_PREFIX)/include/cgds
22 cp src/*.h $(INSTALL_PREFIX)/include/cgds/
23
24 uninstall:
25 rm -f ${INSTALL_PREFIX}/lib/${LIBRARY}
26 [[ -d ${INSTALL_PREFIX}/include/cgds ]] && rm -rf ${INSTALL_PREFIX}/include/cgds
27
28 .PHONY: src test doc clean install uninstall