Browse Source

add version.txt in makefile

wangyu- 8 years ago
parent
commit
62abe7a3ea
1 changed files with 2 additions and 1 deletions
  1. 2 1
      makefile

+ 2 - 1
makefile

@@ -16,7 +16,7 @@ NAME=tinyvpn
 
 TARGETS=amd64 arm mips24kc_be x86  mips24kc_le
 
-TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'`
+TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/tinyvpn_\1/g'` version.txt
 
 all:git_version
 	rm -f ${NAME}
@@ -63,6 +63,7 @@ cross3:git_version
 	${cc_cross}   -o ${NAME}_cross    -I. ${SOURCES} ${FLAGS} -lrt -static -O3
 
 release: ${TARGETS} 
+	cp git_version.h version.txt
 	tar -zcvf ${TAR}
 
 clean: