updated email address in AUTHORS
[cgds.git] / Makefile
CommitLineData
a7868768
BA
1#http://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line
2#to reconstruct dependency rules or not
3
4LIBRARY = libcgds.so
5INSTALL_PREFIX = /usr/local
6
7src:
8 cd src && make && cd ..
9
10test:
11 cd test && make && cd ..
12
13doc:
14 cd doc && make && cd ..
15
16clean:
17 cd src && make clean && cd ..
18 cd test && make clean && cd ..
19 cd doc && make clean && cd ..
20
21install:
22# if [ ! -e src/obj/libcds.so ]; then make src; fi
23 cp src/obj/$(LIBRARY) $(INSTALL_PREFIX)/lib/
24 mkdir -p $(INSTALL_PREFIX)/include/cgds
25 cp src/*.h $(INSTALL_PREFIX)/include/cgds/
26
27uninstall:
28 rm -f ${INSTALL_PREFIX}/lib/${LIBRARY}
29 [[ -d ${INSTALL_PREFIX}/include/cgds ]] && rm -rf ${INSTALL_PREFIX}/include/cgds
30
31.PHONY: src test doc clean install uninstall