Using the I detailed below .pro file, I consistently get the output I detailed below too (first). The question is: why does qmake generate the same statements in the makefile twice? Anyone ideas?
By the way: everything works properly, except for the weird warning out of the makefile.
Below first the warnings, then the .pro file and finally the Makefile statements generated by qmake, that cause the warning.
Anyone idea’s what the .pro file is doing wrong?
Output after deploy:
16:48:25: Starting: "/usr/bin/make" install
Makefile:489: warning: overriding recipe for target 'install_target'
Makefile:480: warning: ignoring old recipe for target 'install_target'
Makefile:493: warning: overriding recipe for target 'uninstall_target'
Makefile:484: warning: ignoring old recipe for target 'uninstall_target'
install -m 755 -p "xmvtest" "/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/xmvtest"
16:48:25: The process "/usr/bin/make" exited normally.
16:48:25: Elapsed time: 00:00.
the .pro file
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG -= qt
HEADERS +=
SOURCES += \
main.cpp \
testcyclechecker.cpp \
testdatamodel.cpp \
jsonprinter.test.cpp
CONFIG += C++11
CONFIG += link_prl
include(deployment.pri)
qtcAddDeployment()
DISTFILES += \
readme.md
unix|win32 {
target.path=$$PWD/../../bin
INSTALLS += target
}
# All external libraries from $$PWD/../lib[/<subdir>], no distinction win32/unix necessary
#
# Remark: 1. always using gtest and gtest_main contrary to gtestd and gtest_maind for debug.
# 2. always use gtest or gtest_main from a version compilated for your machine
#
unix|win32: LIBS += -L$$PWD/../../lib/datamodel -ldatamodel
unix|win32: LIBS += -L$$PWD/../../lib/vt -lvt
unix|win32: LIBS += -L$$PWD/../../lib/bitpowder -lbitpowder
unix|win32: LIBS += -L$$PWD/../../lib -lgtest
INCLUDEPATH += $$PWD/../../include/datamodel
DEPENDPATH += $$PWD/../../include/datamodel
INCLUDEPATH += $$PWD/../../include/vt
DEPENDPATH += $$PWD/../../include/vt
INCLUDEPATH += $$PWD/../../include/bitpowder
DEPENDPATH += $$PWD/../../include/bitpowder
INCLUDEPATH += $$PWD/../../include
DEPENDPATH += $$PWD/../../include
The generated makefile statements are:
####### Install
install_target: first FORCE
@test -d $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin || mkdir -p $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin
-$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/$(QMAKE_TARGET)"
uninstall_target: FORCE
-$(DEL_FILE) "$(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/$(QMAKE_TARGET)"
-$(DEL_DIR) $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin/
install_target: first FORCE
@test -d $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin || mkdir -p $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin
-$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/$(QMAKE_TARGET)"
uninstall_target: FORCE
-$(DEL_FILE) "$(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/$(QMAKE_TARGET)"
-$(DEL_FILE) "$(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/bin/$(QMAKE_TARGET)"
-$(DEL_DIR) $(INSTALL_ROOT)/home/gbonnema/Documents/10-studie-ou/T61327-ABI-Afstudeerproject-Bachelor-Informatica/xmas/src/xmvtest/../../bin/
install: install_target install_target FORCE
uninstall: uninstall_target uninstall_target FORCE
FORCE:
↧