Skip to content

Commit

Permalink
embed: use luajit executable var in version lookup in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeev committed Feb 7, 2020
1 parent 2e0ebf9 commit 05a7be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions embed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ INSTALL_CMOD = $(shell pkg-config luajit --variable INSTALL_CMOD)
OPT = -O3
DEBUG =

VERSION_MAJOR := $(shell cd ../; luajit -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.major)")
VERSION_MINOR := $(shell cd ../; luajit -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.minor)")
VERSION_PATCH := $(shell cd ../; luajit -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.patch)")
VERSION_MAJOR := $(shell cd ../; $(LUAJIT) -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.major)" 2>/dev/null)
VERSION_MINOR := $(shell cd ../; $(LUAJIT) -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.minor)" 2>/dev/null)
VERSION_PATCH := $(shell cd ../; $(LUAJIT) -e "package.path = './?/init.lua;' .. package.path; print(require('radio').version_info.patch)" 2>/dev/null)
VERSION_COMMIT := $(shell git describe --abbrev --always --tags --dirty 2>/dev/null || echo "")

CFLAGS = -std=c99 -D_DEFAULT_SOURCE
Expand Down

0 comments on commit 05a7be4

Please sign in to comment.