Skip to content

Commit

Permalink
add version.txt in makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Oct 29, 2017
1 parent 90911eb commit 62abe7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 62abe7a

Please sign in to comment.