From 9a631a1e2b6d6dd245f78eb20d05358ca6ba209c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 29 Mar 2018 11:38:47 +0200 Subject: [PATCH] Add clean command for plugininfo --- plugins.pri | 10 ++++++++++ 1 file changed, 10 insertions(+) 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