diff --git a/vesc_tool.pro b/vesc_tool.pro index 53ff3b0b5..ad439afc1 100644 --- a/vesc_tool.pro +++ b/vesc_tool.pro @@ -355,6 +355,35 @@ ios { CONFIG -= warn_on QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2 } + +unix { + isEmpty(PREFIX) { + PREFIX = /usr/local + } + BINDIR = $$PREFIX/bin + DATADIR = $$PREFIX/share + CONFDIR = /etc + isEmpty(VARDIR) { + VARDIR = /var/lib/$${TARGET} + } + + INSTALLS += target config desktop icon32 vardir + + target.path = $$BINDIR + + config.path = $$CONFDIR + config.files += $${TARGET}.conf + + desktop.path = $$DATADIR/applications + desktop.files += $${TARGET}.desktop + + icon32.path = $$DATADIR/icons/hicolor/32x32/apps + icon32.files += ./data/32x32/$${TARGET}.png + + vardir.path = $$VARDIR + vardir.commands = true +} + CONFIG -= warn_on contains(ANDROID_TARGET_ARCH,) {