From 66195c0313c3469a40625c5aba9ef0f334977c07 Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Tue, 30 May 2023 14:20:12 +0200 Subject: [PATCH] added top level makefile for simpler dev --- Makefile | 10 ++++++++++ README.md | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7dfadf4 --- /dev/null +++ b/Makefile @@ -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}' \ No newline at end of file diff --git a/README.md b/README.md index 8aa90f8..0886014 100644 --- a/README.md +++ b/README.md @@ -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