tag correctly if we are on a branch

This commit is contained in:
Jason Kotzin 2019-05-31 00:07:20 -07:00
parent 8606b78b9e
commit 6b9b502354

View File

@ -87,7 +87,7 @@ clean: host_clean
all_platforms:
$(Q)set -e ;\
mkdir -p artifacts/$(shell git describe --always) ;\
mkdir -p artifacts/$(shell git describe --tags --always) ;\
echo "<html><body><ul>" > artifacts/index.html ;\
for i in platforms/*/Makefile.inc ; do \
export DIRNAME=`dirname $$i` ;\
@ -103,11 +103,11 @@ all_platforms:
fi ;\
done ;\
echo "</ul></body></html>" >> artifacts/index.html ;\
cp artifacts/*.bin artifacts/$(shell git describe --always)
cp artifacts/*.bin artifacts/$(shell git describe --tags --always)
include/version.h: FORCE
$(Q)echo " GIT include/version.h"
$(Q)echo "#define FIRMWARE_VERSION \"`git describe --always --dirty`\"" > $@
$(Q)echo "#define FIRMWARE_VERSION \"`git describe --tags --always --dirty`\"" > $@
-include *.d