aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-03-13 13:17:59 -0400
committerCalvin <calvin@EESI>2013-03-13 13:17:59 -0400
commit6b63b947d5a6092e856f47b1422151dbc251346e (patch)
treecd69ae113e7705ffbc2599b9ddd81bffe0ece0b8 /Makefile
parentfb3ed9e704c5ecd06da70a0c1ce0f0fc458de466 (diff)
updated makefile to install nbc properly and python properly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..06a35ab 100644
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,29 @@
+all: nbc python
+
+install:
+ @echo installing executable files to ${DESTDIR}${PREFIX}/bin
+ @mkdir -p ${DESTDIR}${PREFIX}/bin
+ @cp -vf src/nbc/probabilities-by-read ${DESTDIR}${PREFIX}/bin/probabilities-by-read
+ @cp -vf src/nbc/count ${DESTDIR}${PREFIX}/bin/count-kmers
+ @cp -vf src/python/quikr ${DESTDIR}${PREFIX}/bin/quikr
+ @cp -vf src/python/quikr_train ${DESTDIR}${PREFIX}/bin/quikr_train
+ @cp -vf src/python/multifasta_to_otu ${DESTDIR}${PREFIX}/bin/multifasta_to_otu
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/probabilities-by-read
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/count-kmers
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/quikr
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/quikr_train
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/multifasta_to_otu
+ @cd src/python; python setup.py install
+
+nbc:
+ @echo "building nbc"
+ @cd src/nbc; make
+
+python:
+ @echo "configuring python"
+ @cd src/python; python setup.py build
+
+clean:
+ @echo "cleaning up"
+ @cd src/python; rm build -Rvf
+ @cd src/nbc; make clean