diff --git a/plugins.pri b/plugins.pri index bd7c6f6b..d851c93c 100644 --- a/plugins.pri +++ b/plugins.pri @@ -39,6 +39,16 @@ extern_plugininfo.commands = nymea-generateplugininfo --filetype e --jsonfile $$ extern_plugininfo_dummy.commands = $$extern_plugininfo.commands QMAKE_EXTRA_TARGETS += extern_plugininfo extern_plugininfo_dummy +# Clean up autogenerated plugin info files +clean_plugininfo.commands = \ + rm -fv $${OUT_PWD}/$${TARGET}/plugininfo.h; \ + rm -fv $${PWD}/$${TARGET}/plugininfo.h; +clean_extern_plugininfo.commands = \ + rm -fv $${OUT_PWD}/$${TARGET}/extern-plugininfo.h; \ + rm -fv $${PWD}/$${TARGET}/extern-plugininfo.h; +clean.depends = clean_plugininfo clean_extern_plugininfo +QMAKE_EXTRA_TARGETS += clean clean_plugininfo clean_extern_plugininfo + # Install translation files TRANSLATIONS *= $$files($${PWD}/$${TARGET}/translations/*ts, true) lupdate.depends = FORCE