qtcreator: add project-update makefile target (#4267)

* qtcreator: add project-update makefile target

* add prompt and delete .pio/

* formatting

* forced rm

* remove workaround of deleting .pio/
This commit is contained in:
John Belmonte
2022-05-15 21:34:57 +09:00
committed by GitHub
parent db11244f49
commit e7a172b8dd

View File

@ -1,6 +1,12 @@
all:
platformio -c qtcreator run
# regenerate project files to reflect platformio.ini changes
project-update:
@echo "This will overwrite project metadata files. Are you sure? [y/N] " \
&& read ans && [ $${ans:-'N'} = 'y' ]
platformio project init --ide qtcreator
# forward any other target (clean, build, etc.) to pio run
{{'%'}}:
platformio -c qtcreator run --target $*