添加了cd路径
1 cc=../tolua++
2 PKG:= $(wildcard ./pkg/*.pkg)
3 PKG_NOTDIR:= $(notdir $(PKG))
4 src:=$(basename $(PKG_NOTDIR))
5
6 define call_tolua
7 $(cc) -n tolua$(1) -H ../cpp2lua/tolua$(1).h -o ../cpp2lua/tolua$(1).cpp $(1).pkg;
8 endef
9
10 SRC_TOLUA:
11 cd "./pkg";$(foreach tmp, $(src), $(call call_tolua,$(tmp)))
12 python tolua_open.py
13
14 all: SRC_TOLUA
cc=./tolua++
#src=GameServer GameServerConfig
PKG := $(wildcard ./pkg/*.pkg)
PKG_NOTDIR := $(notdir $(PKG))
src := $(basename $(PKG_NOTDIR))
define call_tolua
$(cc) -n tolua$(1) -H ./cpp2lua/tolua$(1).h -o ./cpp2lua/tolua$(1).cpp ./pkg/$(1).pkg;
endef
SRC_TOLUA:
$(foreach tmp, $(src), $(call call_tolua,$(tmp)))
all: SRC_TOLUA
posted on 2017-10-10 17:42
长戟十三千 阅读(862)
评论(0) 编辑 收藏 引用 所属分类:
编程技巧随笔