Skip to content

Commit

Permalink
Check btllib installation in ntLink makefile (#57)
Browse files Browse the repository at this point in the history
* Add checks for btllib installation in ntLink

* python3 check for btllib
  • Loading branch information
lcoombe authored Jul 5, 2022
1 parent 2e7d60c commit d2897ae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ntLink
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ help:
@echo ""

scaffold: check_params \
check_install \
ntLink_graph \
abyss_scaffold

Expand Down Expand Up @@ -151,12 +152,20 @@ ifeq ($(target), None)
$(error ERROR: Must set target)
endif

check_install:
ifeq ($(shell command -v indexlr),)
$(error ERROR: indexlr not found. Please ensure btllib is installed)
endif
ifneq ($(shell command -v 'python3 -c "import btllib"'),)
$(error ERROR: btllib not found. Please ensure btllib is installed)
endif

version:
@echo "ntLink v1.3.1"
@echo "Written by Lauren Coombe ([email protected])"


.PHONY: help scaffold version check_params clean pair gap_fill
.PHONY: help scaffold version check_params clean pair gap_fill check_install
.DELETE_ON_ERROR:
.SECONDARY:

Expand Down

0 comments on commit d2897ae

Please sign in to comment.