added top level makefile for simpler dev

This commit is contained in:
Erik Frojdh 2023-05-30 14:20:12 +02:00
parent 9cf3ce24d1
commit 66195c0313
2 changed files with 16 additions and 0 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
default: ext
ext: ## [DEFAULT] build c extension in place
python setup.py build_ext --inplace
clean: ## Remove the build folder and the shared library
rm -rf build/ creader.cpython*
help: # from compiler explorer
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

View File

@ -8,6 +8,12 @@ Useful links:
### Build instructions
**Simplified build using make**
```bash
make #build c extension inplace
```
**Manual build**
```bash
#build in place and use from the same folder