Some fixes + improvements (Vector) + code reformatting
[cgds.git] / Makefile
... / ...
CommitLineData
1LIBRARY = libcgds.so
2INSTALL_PREFIX = /usr/local
3
4all: src
5
6src:
7 cd src && $(MAKE) && cd ..
8
9test:
10 cd test && ./makeMain.sh && $(MAKE) && cd ..
11
12doc:
13 cd doc && $(MAKE) && cd ..
14
15clean:
16 cd src && $(MAKE) clean && cd ..
17 cd test && $(MAKE) clean && cd ..
18 cd doc && $(MAKE) clean && cd ..
19
20install:
21 mkdir -p $(INSTALL_PREFIX)/lib/
22 cp src/obj/$(LIBRARY) $(INSTALL_PREFIX)/lib/
23 mkdir -p $(INSTALL_PREFIX)/include/cgds
24 cp src/*.h $(INSTALL_PREFIX)/include/cgds/
25 mv $(INSTALL_PREFIX)/include/cgds/cgds.h $(INSTALL_PREFIX)/include/
26
27uninstall:
28 rm -f ${INSTALL_PREFIX}/lib/${LIBRARY}
29 rm -f ${INSTALL_PREFIX}/include/cgds.h
30 [[ -d ${INSTALL_PREFIX}/include/cgds ]] && rm -rf ${INSTALL_PREFIX}/include/cgds
31
32.PHONY: src test doc clean install uninstall