Add clean command for plugininfo

This commit is contained in:
Simon Stürz 2018-03-29 11:38:47 +02:00 committed by Michael Zanetti
parent 37ae80cbfa
commit ee6166770a

View File

@ -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