Update makefile to try python3 to get version info

pull/671/head
Mark Jessop 2022-09-24 16:03:38 +09:30
rodzic bd1ad6c4cf
commit 1b82b3c146
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
AUTO_RX_VERSION := $(shell PYTHONPATH=./auto_rx python -m autorx.version)
AUTO_RX_VERSION := $(shell PYTHONPATH=./auto_rx python3 -m autorx.version 2>/dev/null || python -m autorx.version)
CFLAGS = -O3 -w -Wno-unused-variable -DVER_JSN_STR=\"$(AUTO_RX_VERSION)\"
export CFLAGS

Wyświetl plik

@ -1,4 +1,4 @@
CFLAGS = -O3 -w -Wno-unused-variable -DVER_JSN_STR=\"$(AUTO_RX_VERSION)\" -DNOC34C50
CFLAGS = -O3 -w -Wno-unused-variable -DNOC34C50
LDLIBS = -lm
PROGRAMS := dft_detect