-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (27 loc) · 838 Bytes
/
Makefile
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
PYTHON_VERSION := $(shell python --version 2>&1)
print_spectrum_help := $(shell print_spectrum -h 2>&1)
print_score_help := $(shell print_score -h 2>&1)
.PHONY: all
all:
ifdef PYTHON_VERSION
@echo "Found version $(PYTHON_VERSION)"
else
@echo "python not in PATH."; exit 1;
endif
ifdef print_spectrum_help
@echo "print_spectrum found."
else
@echo $(print_spectrum_help)
@echo "npdtools binaries not in PATH."; exit 1;
endif
ifdef print_score_help
@echo "print_score found."
else
@echo $(print_spectrum_help)
@echo "npdtools binaries not in PATH."; exit 1;
endif
@echo "Running CycloNovo tests ..."
# testsurugsamide:
cp ./scripts/cyclonovo.py cyclonovo
chmod a+wrx cyclonovo
@echo "Running tests: surugamdie"; ./cyclonovo -s data/surugamide_spectrum.mgf -o surugamide_test --monomers standard -e 0.015 --verbosity --denovo