-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (43 loc) · 1.01 KB
/
Makefile
File metadata and controls
59 lines (43 loc) · 1.01 KB
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
#
# A simple and stupid Makefile for python-efl.
#
# This is mainly targeted at lazy devlopers (like me) that
# want to type less or do not want to learn the python
# setup syntax.
#
# Usage:
#
# make <cmd> to build using the default python interpreter
# make <cmd> PY=pythonX to build using the specified python interpreter
#
PY = python
CC = clang
.PHONY: build
build:
CC=$(CC) $(PY) -m build
.PHONY: dist
dist:
CC=$(CC) $(PY) -m build --sdist
@cd dist/; for f in `ls *.tar.*` ; do \
echo Generating sha256 for: $$f ; \
sha256sum $$f > $$f.sha256; \
done
.PHONY: install
install:
CC=$(CC) $(PY) -m pip install . --verbose
.PHONY: uninstall
uninstall:
$(PY) -m pip uninstall python-efl
.PHONY: doc
doc:
$(PY) -m sphinx docs/ build/docs/
.PHONY: test
test:
$(PY) -m unittest discover tests/ --verbose
.PHONY: clean
clean:
find -type f -name "*.c" ! -name "e_dbus.c" -exec rm -r {} \;
find -type d -name "__pycache__" -exec rm -r {} \;
rm -rf build/
rm -rf dist/
rm -rf src/python_efl.egg-info/