Commit | Line | Data |
---|---|---|
a7868768 BA |
1 | LIBRARY = libcgds.so |
2 | INSTALL_PREFIX = /usr/local | |
3 | ||
aef8a996 BA |
4 | all: src |
5 | ||
a7868768 | 6 | src: |
bbd242d4 | 7 | cd src && $(MAKE) && cd .. |
a7868768 BA |
8 | |
9 | test: | |
aef8a996 | 10 | cd test && ./makeMain.sh && $(MAKE) && cd .. |
a7868768 BA |
11 | |
12 | doc: | |
bbd242d4 | 13 | cd doc && $(MAKE) && cd .. |
a7868768 BA |
14 | |
15 | clean: | |
bbd242d4 BA |
16 | cd src && $(MAKE) clean && cd .. |
17 | cd test && $(MAKE) clean && cd .. | |
18 | cd doc && $(MAKE) clean && cd .. | |
a7868768 BA |
19 | |
20 | install: | |
94bb30da | 21 | mkdir -p $(INSTALL_PREFIX)/lib/ |
a7868768 BA |
22 | cp src/obj/$(LIBRARY) $(INSTALL_PREFIX)/lib/ |
23 | mkdir -p $(INSTALL_PREFIX)/include/cgds | |
24 | cp src/*.h $(INSTALL_PREFIX)/include/cgds/ | |
1ff641f9 | 25 | mv $(INSTALL_PREFIX)/include/cgds/cgds.h $(INSTALL_PREFIX)/include/ |
a7868768 BA |
26 | |
27 | uninstall: | |
28 | rm -f ${INSTALL_PREFIX}/lib/${LIBRARY} | |
1ff641f9 | 29 | rm -f ${INSTALL_PREFIX}/include/cgds.h |
a7868768 BA |
30 | [[ -d ${INSTALL_PREFIX}/include/cgds ]] && rm -rf ${INSTALL_PREFIX}/include/cgds |
31 | ||
32 | .PHONY: src test doc clean install uninstall |