forked from PetterS/quickjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·33 lines (25 loc) · 833 Bytes
/
Makefile
File metadata and controls
executable file
·33 lines (25 loc) · 833 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
29
30
31
32
33
test: install
pipenv run python -m unittest
install: build
pipenv run python setup.py develop
build: Makefile module.c third-party/quickjs.c third-party/quickjs.h
pipenv run python setup.py build
format:
pipenv run python -m yapf -i -r --style .style.yapf *.py
clang-format-7 -i module.c
distribute: test
rm -rf dist/
@echo "Now build the wheel for Windows in the dist/ folder."
@echo " pipenv run python setup.py build -c mingw32"
@echo " pipenv run python setup.py bdist_wheel --skip-build"
@echo "Press enter to continue when done..."
@read _
pipenv run python setup.py sdist
upload-test: distribute
pipenv run python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload: distribute
pipenv run python -m twine upload dist/*
clean:
rm -rf build/ dist/
rm *.so
rm *.pyd