aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 48564ca60e58278898c5b8d890365c3633a0a31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PREFIX = "/usr/"
all: c

install: c 
	@echo installing executable files to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@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 555 ${DESTDIR}${PREFIX}/bin/quikr
	chmod -v 555 ${DESTDIR}${PREFIX}/bin/quikr_train
	chmod -v 555 ${DESTDIR}${PREFIX}/bin/multifasta_to_otu
	@cp -vf src/c/quikr.1 ${DESTDIR}${PREFIX}/share/man/man1/quikr.1
	@cp -vf src/c/quikr_train.1 ${DESTDIR}${PREFIX}/share/man/man1/quikr_train.1
	@cp -vf src/c/multifasta_to_otu.1 ${DESTDIR}${PREFIX}/share/man/man1/multifasta_to_otu.1

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/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
	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

clean:
	@echo "cleaning up"
	@cd src/python; rm build -Rvf
	@cd src/c; make clean