-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 1.15 KB
/
Makefile
File metadata and controls
35 lines (30 loc) · 1.15 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
.PHONY: build clean
CFLAGS='-w'
build:
@echo "Building..."
CFLAGS=$(CFLAGS) python3 setup.py build_ext -j $(shell getconf _NPROCESSORS_ONLN) --inplace
clean:
@echo "Cleaning..."
rm -rf pyboy_advance.egg-info
rm -rf build
rm -rf dist
find pyboy_advance/ -type f -name "*.pyo" -delete
find pyboy_advance/ -type f -name "*.pyc" -delete
find pyboy_advance/ -type f -name "*.pyd" -delete
find pyboy_advance/ -type f -name "*.so" -delete
find pyboy_advance/ -type f -name "*.c" -delete
find pyboy_advance/ -type f -name "*.h" -delete
find pyboy_advance/ -type f -name "*.dll" -delete
find pyboy_advance/ -type f -name "*.lib" -delete
find pyboy_advance/ -type f -name "*.exp" -delete
find pyboy_advance/ -type f -name "*.html" -delete
find pyboy_advance/ -type f -name "*.build.py" -delete
find pyboy_advance/ -type f -name "*.build.pyx" -delete
find pyboy_advance/ -type f -name "*.build.pxd" -delete
find pyboy_advance/ -type f -name "constants.pyx" -delete
find pyboy_advance/ -type f -name "constants.pxd" -delete
find pyboy_advance/ -type d -name "__pycache__" -delete
install:
python3 -m pip install .
uninstall:
python3 -m pip uninstall pyboy-advance