From db4ac954bad5be7319fdeace34e43b2f92e54e08 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Mon, 16 Nov 2015 10:21:14 +0100 Subject: [PATCH] Better makefile recipe for lua_exports.inc target --- radio/src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/radio/src/Makefile b/radio/src/Makefile index 3da3b8704..503ee5315 100644 --- a/radio/src/Makefile +++ b/radio/src/Makefile @@ -1645,7 +1645,12 @@ else PARSER = gcc -E -x c++ endif -lua_exports.inc: myeeprom.h ../util/luaexport.py +.PHONY: lua_exports.inc +lua_exports.inc: lua/lua_exports.inc lua_fields.txt + +lua/lua_exports.inc lua_fields.txt: lua_exports.dummy + +lua_exports.dummy: myeeprom.h ../util/luaexport.py @echo "Generating a list of Lua exported constants in lua_exports.txt" @$(PARSER) -DPCBTARANIS -DCPUARM -DCPUSTM32 -DLUA -DEXPORT myeeprom.h | grep LEXP > lua_exports.txt @echo "Parsing and generating C Lua exports in lua/lua_exports.inc"