-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
executable file
·71 lines (55 loc) · 1.25 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.ONESHELL:
SHELL = /bin/bash
PACKAGE := pmk
# Assumes Python3
pip3_version := $(shell pip3 --version 2>/dev/null)
.PHONY: doc
default: install_short
doc:
#pushd doc/
#make
#pushd
pdoc -f --html --output-dir doc pymake
install:
# Dependancy: python3-tk
ifdef pip3_version
#python3 setup.py install --user --record .$(PACKAGE).egg-info
pip3 install --user -r requirements.txt
python3 setup.py install --user
else
@echo "error: please install the \`pip3' package"
@exit 0
endif
install_short:
python3 setup.py install --user
push_pip:
rm -rf dist/
python setup.py sdist
twine upload dist/*
push_doc: doc
cd doc/pymake
export NEOCITIES_KEY=$(shell cat ${HOME}/src/config/credentials/pymake.neocities)
neocities upload *
cd -
uninstall:
pip3 uninstall $(PACKAGE)
rm -vf $(HOME)/.local/bin/$(PACKAGE)
rm -f $(HOME)/.bash_completion.d/pymake_completion
build:
python3 setup.py build
test:
pushd tests
DISPLAY= python3 functest.py
popd
msa:
ditaa wiki/msa.md wiki/msa.png
clean: clean_cython
find -name "__pycache__" | xargs rm -rf
find -name "*.pyc" | xargs rm -f
find -name "*.pyd" | xargs rm -f
find -name "*.pyo" | xargs rm -f
#find -name "*.orig" | xargs rm -fi
-@rm -rf build/
-@rm -rf dist/
-@rm -rf *.egg-info/
clean_cython: