fix: correct Makefile build cachine issues

main
Sean McBride 4 years ago
parent cc4cc96cc3
commit 97df7292a7

@ -37,6 +37,9 @@ for ((i = 0; i < total_count; i++)); do
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary @"${word_count}"_words.pnm localhost:${word_count_to_port["$word_count"_words.pnm]} 2> /dev/null) result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary @"${word_count}"_words.pnm localhost:${word_count_to_port["$word_count"_words.pnm]} 2> /dev/null)
# If the OCR does not produce a guess, fail
[[ -z "$result" ]] && exit 1
diff -ywBZE --suppress-common-lines <(echo "$words") <(echo "$result") diff -ywBZE --suppress-common-lines <(echo "$words") <(echo "$result")
echo "===============================================" echo "==============================================="
done done

@ -4,7 +4,7 @@ TESTS=fibonacci empty work work1k work10k work100k work1m forever filesys sockse
TESTSRT=$(TESTS:%=%_rt) TESTSRT=$(TESTS:%=%_rt)
.PHONY: all clean rttests .PHONY: all clean rttests tinyekf cifar10 gocr sod
all: rttests tinyekf cifar10 gocr sod all: rttests tinyekf cifar10 gocr sod
@echo "Compilation done!" @echo "Compilation done!"
@ -16,15 +16,15 @@ clean:
@rm -rf ${SLEDGE_BIN_DIR}/*_wasm.so @rm -rf ${SLEDGE_BIN_DIR}/*_wasm.so
tinyekf: tinyekf:
make clean gps_ekf_fn.so -C ./TinyEKF/extras/c/ -f wasm.mk make gps_ekf_fn.so -C ./TinyEKF/extras/c/ -f wasm.mk
cp ./TinyEKF/extras/c/gps_ekf_fn.so ${SLEDGE_BIN_DIR}/ekf_wasm.so cp ./TinyEKF/extras/c/gps_ekf_fn.so ${SLEDGE_BIN_DIR}/ekf_wasm.so
cifar10: cifar10:
make clean cifar10.so -C ./CMSIS_5_NN/ -f Makefile make cifar10.so -C ./CMSIS_5_NN/ -f Makefile
cp ./CMSIS_5_NN/cifar10.so ${SLEDGE_BIN_DIR}/cifar10_wasm.so cp ./CMSIS_5_NN/cifar10.so ${SLEDGE_BIN_DIR}/cifar10_wasm.so
gocr: gocr:
make clean gocr.so -C ./gocr/src/ -f wasm.mk make gocr.so -C ./gocr/src/ -f wasm.mk
cp ./gocr/src/gocr.so ${SLEDGE_BIN_DIR}/gocr_wasm.so cp ./gocr/src/gocr.so ${SLEDGE_BIN_DIR}/gocr_wasm.so
sod: sod:

Loading…
Cancel
Save