summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin <calvin@EESI>2013-05-14 21:12:26 -0400
committerCalvin <calvin@EESI>2013-05-14 21:12:26 -0400
commit11fbd1d69236fee9c694a26b5e70e170aca9f02f (patch)
treeb7557d951f03f9413cbf387aa3e13d029404f032 /Makefile
parentf53fc0eb3728f7933bf71c0090014f653b38861f (diff)
update makefile to include c
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 25 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index c3fa75c..cc535d0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,48 @@
-all: nbc python
+PREFIX = "/usr/"
+all: nbc c
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
- @cp -vf src/python/generate_kmers ${DESTDIR}${PREFIX}/bin/generate_kmers
+ @cp -vf src/c/quikr_train ${DESTDIR}${PREFIX}/bin/quikr_train
+ @cp -vf src/c/quikr ${DESTDIR}${PREFIX}/bin/quikr
+ @cp -vf src/c/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
- chmod -v 755 ${DESTDIR}${PREFIX}/bin/generate_kmers
- @cd src/python; python setup.py install
-
+
nbc:
@echo "building nbc"
@cd src/nbc; make
+c:
+ @echo "building c"
+ @cd src/c; make
python:
@echo "configuring python"
@cd src/python; python setup.py build
+install_python:
+ @cd src/python; python setup.py install
+ @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.py
+ @cp -vf src/python/quikr_train ${DESTDIR}${PREFIX}/bin/quikr_train.py
+ @cp -vf src/python/multifasta_to_otu ${DESTDIR}${PREFIX}/bin/multifasta_to_otu.py
+ @cp -vf src/python/generate_kmers ${DESTDIR}${PREFIX}/bin/generate_kmers
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/probabilities-by-read
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/count-kmers
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/quikr.py
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/quikr_train.py
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/multifasta_to_otu.py
+ chmod -v 755 ${DESTDIR}${PREFIX}/bin/generate_kmers
+
clean:
@echo "cleaning up"
@cd src/python; rm build -Rvf
@cd src/nbc; make clean
+ @cd src/c; make clean