Skip to content

Commit eef4a5f

Browse files
authored
Update makefile
1 parent 6d037a6 commit eef4a5f

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

makefile

+5-23
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,27 @@
1-
# an alias to the python command
2-
PYTHON=python3
3-
4-
# build the LaiNES code, test the Python interface, and build
5-
# the deployment package
1+
# build everything
62
all: test deployment
73

8-
#
9-
# MARK: Development
10-
#
11-
124
# build the LaiNES CPP code
135
lib_nes_env:
146
scons -C nes_py/nes
157
mv nes_py/nes/lib_nes_env*.so nes_py
168

179
# run the Python test suite
1810
test: lib_nes_env
19-
${PYTHON} -m unittest discover .
11+
python3 -m unittest discover .
2012

21-
#
22-
# MARK: Deployment
23-
#
24-
25-
clean_dist:
13+
# clean the build directory
14+
clean:
2615
rm -rf build/ dist/ .eggs/ *.egg-info/ || true
27-
28-
clean_python_build:
2916
find . -name "*.pyc" -delete
3017
find . -name "__pycache__" -delete
31-
32-
clean_cpp_build:
3318
find . -name ".sconsign.dblite" -delete
3419
find . -name "build" | rm -rf
3520
find . -name "lib_nes_env.so" -delete
3621

37-
# clean the build directory
38-
clean: clean_dist clean_python_build clean_cpp_build
39-
4022
# build the deployment package
4123
deployment: clean
42-
${PYTHON} setup.py sdist bdist_wheel
24+
python3 setup.py sdist bdist_wheel
4325

4426
# ship the deployment package to PyPi
4527
ship: test deployment

0 commit comments

Comments
 (0)