brew 使用 make 生成 mif

brew项目测试中,经常需要改变被测试程序的版本号,每次都需要修改mif文件,每次都要打开mifeditor,很不方便,最好能用makefile来生成,这样可以与程序一起用make控制编译。于是,写了下面的makefile

DIST ?= .
filename ?= test
name ?= "test"
copyright ?= "--==rix==--"
ver ?= $(shell cat ../source/ver.h | echo)
clsid = "0x12300001"
type = ""
privileges = "File Network Web AddressBook"
imported = "0x01028839 0x0103d8e2 0x0103081d"
exec = "../../Tool/ResourceEditor/brewrc.exe"
image = "../../resource/icon/icon32.png ../../resource/icon/icon48.png ../../resource/icon/icon192.png"

all:
	filename=$(filename) name=$(name) copyright=$(copyright) ver=$(ver) clsid=$(clsid) image=$(image) privileges=$(privileges) imported=$(imported) exec=$(exec) type=$(type) ../../Tool/createmif.sh ../../$(DIST)

继续阅读brew 使用 make 生成 mif