forked from platformio/platformio-core
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:
@ -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 $*
|
||||
|
Reference in New Issue
Block a user