diff --git a/src/Makefile b/src/Makefile
index a9f0848..2bab43f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -145,13 +145,18 @@ all_platforms:
$(Q)set -e ;\
mkdir -p artifacts/$(shell git describe --always --dirty --tags) ;\
echo "
" > artifacts/index.html ;\
+ $(MAKE) clean ;\
for i in platforms/*/Makefile.inc ; do \
export DIRNAME=`dirname $$i` ;\
export PROBE_HOST=`basename $$DIRNAME` ;\
export CFLAGS=-Werror ;\
echo "Building for hardware platform: $$PROBE_HOST" ;\
- $(MAKE) clean ;\
$(MAKE);\
+ if [ -f blackmagic ]; then \
+ mv blackmagic artifacts/blackmagic-$$PROBE_HOST ;\
+ echo "- $$PROBE_HOST
"\
+ >> artifacts/index.html ;\
+ fi ;\
if [ -f blackmagic.bin ]; then \
mv blackmagic.bin artifacts/blackmagic-$$PROBE_HOST.bin ;\
echo "- $$PROBE_HOST
"\
@@ -162,9 +167,10 @@ all_platforms:
echo "- $$PROBE_HOST DFU
"\
>> artifacts/index.html ;\
fi ;\
+ $(MAKE) clean ;\
done ;\
echo "
" >> artifacts/index.html ;\
- cp artifacts/*.bin artifacts/$(shell git describe --always --dirty --tags)
+ cp artifacts/blackmagic* artifacts/$(shell git describe --always --dirty --tags)
command.c: include/version.h
diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc
index 6ba2d78..907b23a 100644
--- a/src/platforms/hosted/Makefile.inc
+++ b/src/platforms/hosted/Makefile.inc
@@ -83,3 +83,8 @@ else
SRC += bmp_serial.c
endif
PC_HOSTED = 1
+
+all: blackmagic
+
+host_clean:
+ -$(Q)$(RM) blackmagic