diff --git a/src/app/tape/tape.pro b/src/app/tape/tape.pro index 6e96a3bc5..38ee8880f 100644 --- a/src/app/tape/tape.pro +++ b/src/app/tape/tape.pro @@ -155,12 +155,14 @@ DIAGRAMS += \ $${PWD}/share/resources/diagrams/Qp2.svg \ $${PWD}/share/resources/diagrams/Qp3.svg -diagrams.name = resource diagrams -diagrams.CONFIG += no_link target_predeps -diagrams.depends = $$DIAGRAMS # expects a list of files -diagrams.input = DATA_RESOURCE # expects the name of a variable -diagrams.output = ${QMAKE_FILE_BASE}.rcc -diagrams.commands = $$shell_path($$[QT_INSTALL_BINS]/rcc) -binary -no-compress ${QMAKE_FILE_IN} -o $${OUT_PWD}/$${DESTDIR}/${QMAKE_FILE_OUT} +!exists($${OUT_PWD}/$${DESTDIR}/diagrams.rcc) { + diagrams.name = resource diagrams + diagrams.CONFIG += no_link target_predeps + diagrams.depends = $$DIAGRAMS # expects a list of files + diagrams.input = DATA_RESOURCE # expects the name of a variable + diagrams.output = ${QMAKE_FILE_BASE}.rcc + diagrams.commands = $$shell_path($$[QT_INSTALL_BINS]/rcc) -binary -no-compress ${QMAKE_FILE_IN} -o $${OUT_PWD}/$${DESTDIR}/${QMAKE_FILE_OUT} +} QMAKE_EXTRA_COMPILERS += diagrams