aboutsummaryrefslogtreecommitdiff
path: root/.local/share/python-dateTimeSetter
diff options
context:
space:
mode:
authorBlista Kanjo2024-06-26 07:24:44 -0400
committerBlista Kanjo2024-06-26 07:24:44 -0400
commit19c61bdfc196b8987f291306d70a5c158b623c41 (patch)
tree8cfa103d484c5e7b53f1667a71c98650a9211a0a /.local/share/python-dateTimeSetter
parent22bc188578b46ffff0708dee48e52d662c9a4a1b (diff)
refactor: make `Makefile`s more compatible with other distros
Diffstat (limited to '.local/share/python-dateTimeSetter')
-rw-r--r--.local/share/python-dateTimeSetter/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/share/python-dateTimeSetter/Makefile b/.local/share/python-dateTimeSetter/Makefile
index 7f19214..156d269 100644
--- a/.local/share/python-dateTimeSetter/Makefile
+++ b/.local/share/python-dateTimeSetter/Makefile
@@ -1,3 +1,4 @@
compile:
cython3 --embed -o dateTime.c -X language_level=3 dateTime.py
- gcc -march=native -O2 -pipe -fno-plt -I /usr/include/python3.12 -o dateTime dateTime.c -lpython3.12 -lpthread -lm -lutil -ldl
+ PYTHON_VERSION=`ls /usr/include | grep -o 'python[3-9]\+\.[0-9]\+'` ; \
+ gcc -march=native -O2 -pipe -fno-plt -I /usr/include/$$PYTHON_VERSION -o dateTime dateTime.c -l$$PYTHON_VERSION -lpthread -lm -lutil -ldl