diff --git a/host_gui/make.sh b/host_gui/make.sh index d6fe43534d09205de830013dd47f2d7b78687e8b..f698890824aead093186e9c47e056d8a12cd3dfb 100755 --- a/host_gui/make.sh +++ b/host_gui/make.sh @@ -4,9 +4,11 @@ firefox=false [ -z "$1" ] || firefox=true pwd=$(pwd) +parentPath=$(cd ..; pwd) +parentName=${parentPath##*/} cd ${ESP8266ARDUINO}/tests/host make FORCE32=0 ssl -make -j 10 FORCE32=0 USERCFLAGS="-I ${ARDUINOLIB}/emuAsync/replacement" ULIBDIRS=${ARDUINOLIB}/emuAsync:${ARDUINOLIB}/ESPUI:${ARDUINOLIB}/ArduinoJson:${ARDUINOLIB}/arduinoWebSockets:${ARDUINOLIB}/ESPWebDAV:${ARDUINOLIB}/Debounceri:${ARDUINOLIB}/ESPWebDAV ${pwd}/../pousseseringue-arduino +make -j 10 FORCE32=0 USERCFLAGS="-I ${ARDUINOLIB}/emuAsync/replacement" ULIBDIRS=${ARDUINOLIB}/emuAsync:${ARDUINOLIB}/ESPUI:${ARDUINOLIB}/ArduinoJson:${ARDUINOLIB}/arduinoWebSockets:${ARDUINOLIB}/ESPWebDAV:${ARDUINOLIB}/Debounceri:${ARDUINOLIB}/ESPWebDAV ${parentPath}/${parentName} $firefox && ( true '----------------------------------------' @@ -16,6 +18,6 @@ $firefox && ( firefox -new-window http://localhost:9080 ) & -./bin/pousseseringue-arduino/pousseseringue-arduino "$@" +./bin/${parentName}/${parentName} "$@" stty sane