提交 48c4c919 编写于 作者: W wwccss

* rewrite the Makefile to make win32 and win64 package.

上级 e6f83e32
VERSION=$(shell head -n 1 VERSION)
VERSION=1.1
all: tgz
all: zip win32 win64
clean:
rm -fr zentaoatf
rm -fr *.zip
tgz:
zip:
mkdir zentaoatf
cp -fr {zt,langs,hello} zentaoatf
find zentaoatf/.git |xargs rm -fr
zip -r -9 ZenTaoATF.$(VERSION).zip zentaoatf
rm -fr zentaoatf
win32:
mkdir zentaoatf
cp -fr {zt,langs,hello} zentaoatf
mkdir zentaoatf/runtime
cp -fr runtime/ansicon/x32/* zentaoatf/runtime
cp -fr runtime/php/* zentaoatf/runtime
echo "@echo off" > zentaoatf/zt.bat
echo "set console=ansicon" >> zentaoatf/zt.bat
echo ".\runtime\ansicon.exe .\runtime\php.exe zt %*" >> zentaoatf/zt.bat
zip -r -9 ZenTaoATF.$(VERSION).win32.zip zentaoatf
rm -fr zentaoatf
win64:
mkdir zentaoatf
cp -fr {zt,langs,hello} zentaoatf
mkdir zentaoatf/runtime
cp -fr runtime/ansicon/x64/* zentaoatf/runtime
cp -fr runtime/php/* zentaoatf/runtime
echo "@echo off" > zentaoatf/zt.bat
echo "set console=ansicon" >> zentaoatf/zt.bat
echo ".\runtime\ansicon.exe .\runtime\php.exe zt %*" >> zentaoatf/zt.bat
zip -r -9 ZenTaoATF.$(VERSION).win64.zip zentaoatf
rm -fr zentaoatf
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册