Skip to content

Commit

Permalink
added version.txt into makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Nov 3, 2017
1 parent cadb142 commit 4c92c29
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 @@ -15,7 +15,7 @@ SOURCES_AES_ACC=$(COMMON) $(wildcard lib/aes_acc/aes*.c)

NAME=udp2raw
TARGETS=amd64 arm amd64_hw_aes arm_asm_aes mips24kc_be mips24kc_be_asm_aes x86 x86_asm_aes mips24kc_le mips24kc_le_asm_aes
TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/udp2raw_\1/g'`
TAR=${NAME}_binaries.tar.gz `echo ${TARGETS}|sed -r 's/([^ ]+)/udp2raw_\1/g'` version.txt

all:git_version
rm -f ${NAME}
Expand Down Expand Up @@ -69,6 +69,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 4c92c29

Please sign in to comment.