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 37 38 39 40 41 42 43 44 45 46 47
|
#
# Part of: https://github.com/mateidavid/fast5
#
# (c) 2017: Matei David, Ontario Institute for Cancer Research
# MIT License
#
.SUFFIXES:
MAKEFLAGS += -r
SHELL := /bin/bash
.DELETE_ON_ERROR:
.PHONY: all help clean check_virtualenv develop develop-user develop-uninstall develop-uninstall-user
PYTHON = $(shell which python)
all: help
print-%:
@echo '$*=$($*)'
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
clean: ## Remove build products
${PYTHON} setup.py clean
rm -rf build dist fast5.egg-info fast5*.so
check_virtualenv:
@[ "$$VIRTUAL_ENV" ] || { echo "not in a virtualenv" >&2; exit 1; }
install: check_virtualenv ## Install to current virtualenv
${PYTHON} setup.py install
install-user: ## Install to current user
${PYTHON} setup.py install --user
develop: check_virtualenv ## Install in develop mode to current virtualenv
${PYTHON} setup.py develop
develop-user: ## Install in develop mode to current user
${PYTHON} setup.py develop --user
develop-uninstall: check_virtualenv clean ## Uninstall from current virtualenv
${PYTHON} setup.py develop --uninstall
develop-uninstall-user: clean ## Uninstall from current user
${PYTHON} setup.py develop --uninstall --user
|