| 1 | .PHONY: build install clean |
| 2 | |
| 3 | # compile all Fortran extensions in-place |
| 4 | build: |
| 5 | python3 setup.py build_ext --inplace --verbose |
| 6 | |
| 7 | # Build then install the package (rebuilding console scripts) |
| 8 | install: build |
| 9 | pip install --force-reinstall . |
| 10 | |
| 11 | # run this thang (no impulse rspnse) |
| 12 | run: |
| 13 | python3 -m gesture_dsp.cli wavy.wav |
| 14 | |
| 15 | # run this thang (yes impulse rspnse) |
| 16 | irrun: |
| 17 | python3 -m gesture_dsp.cli wavy.wav --ir impulse_response.wav |
| 18 | |
| 19 | # Remove all build artifacts and compiled modules |
| 20 | clean: |
| 21 | rm -rf build/ dist/ *.egg-info |
| 22 | rm -rf src/gesture_dsp.egg-info |
| 23 | rm -rf src/gesture_dsp/dsp_effects/*.{so,mod} |
| 24 | rm -rf __pycache__ */__pycache__ |
| 25 | |
| 26 | uninstall: clean |
| 27 | python3 -m pip uninstall gesture_dsp |