2 INSTALL_PREFIX = /usr/local
5 cd src && $(MAKE) && cd ..
8 cd test && $(MAKE) && cd ..
11 cd doc && $(MAKE) && cd ..
14 cd src && $(MAKE) clean && cd ..
15 cd test && $(MAKE) clean && cd ..
16 cd doc && $(MAKE) clean && cd ..
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/
25 rm -f ${INSTALL_PREFIX}/lib/${LIBRARY}
26 [[ -d ${INSTALL_PREFIX}/include/cgds ]] && rm -rf ${INSTALL_PREFIX}/include/cgds
28 .PHONY: src test doc clean install uninstall