Add clean command for plugininfo
This commit is contained in:
parent
37ae80cbfa
commit
ee6166770a
10
plugins.pri
10
plugins.pri
@ -39,6 +39,16 @@ extern_plugininfo.commands = nymea-generateplugininfo --filetype e --jsonfile $$
|
|||||||
extern_plugininfo_dummy.commands = $$extern_plugininfo.commands
|
extern_plugininfo_dummy.commands = $$extern_plugininfo.commands
|
||||||
QMAKE_EXTRA_TARGETS += extern_plugininfo extern_plugininfo_dummy
|
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
|
# Install translation files
|
||||||
TRANSLATIONS *= $$files($${PWD}/$${TARGET}/translations/*ts, true)
|
TRANSLATIONS *= $$files($${PWD}/$${TARGET}/translations/*ts, true)
|
||||||
lupdate.depends = FORCE
|
lupdate.depends = FORCE
|
||||||
|
|||||||
Reference in New Issue
Block a user