-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 675 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (24 loc) · 675 Bytes
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
SHELL := /usr/bin/zsh
ACTIVATE_SRC := ${HOME}/miniconda3/bin/activate
CONDA_ENV_NAME := agtree
SELF := $(realpath $(dir $(firstword \
${MAKEFILE_LIST})))
PYTHON := source ${ACTIVATE_SRC} ${CONDA_ENV_NAME} ; python
# PYTHON := python
create-dist :
${PYTHON} setup.py sdist bdist_wheel
upload : create-dist
${PYTHON} -m twine upload dist/*
.PHONY: try-example
try-example :
cd $(realpath $(dir ${SELF})) ; \
${PYTHON} -m ${notdir ${SELF}}.example \
--help
cd $(realpath $(dir ${SELF})) ; \
${PYTHON} -m ${notdir ${SELF}}.example \
pop \
--help
cd $(realpath $(dir ${SELF})) ; \
${PYTHON} -m ${notdir ${SELF}}.example \
--style2 alpha \
pop