diff --git a/src/config b/src/config index a3bffcb..cb0ddcf 100755 --- a/src/config +++ b/src/config @@ -31,6 +31,7 @@ prefix="/usr/local" installdir=""; plain_keys="" debug_option=""; +build_mode="release"; for arg in $* do case $arg in @@ -78,7 +79,8 @@ Options: fi;; --plain_keys) plain_keys="PLAIN_KEYS";; --debug) - debug_option+="_DEBUG";; + debug_option+="_DEBUG"; + build_mode="debug";; *) echo "Unrecognized argument: \"$arg\". Try ./config --help for help." esac done @@ -88,7 +90,11 @@ arg2="PREFIX=$prefix" arg3="DEFINES += $plain_keys $debug_option" arg4="INSTALL_PREFIX=${installdir}/${prefix}/" -$QMAKE_EXEC -makefile "$arg1" "$arg2" "$arg3" "$arg4" qjoypad.pro +$QMAKE_EXEC -makefile DEVDIR=$devdir PREFIX=$prefix \ + "DEFINES += $plain_keys $debug_option" \ + INSTALL_PREFIX=${installdir}/${prefix}/ \ + "CONFIG += $build_mode" \ + qjoypad.pro echo " Configuring QJoyPad installation... diff --git a/src/qjoypad.pro b/src/qjoypad.pro index c77cddc..7b5b7a4 100644 --- a/src/qjoypad.pro +++ b/src/qjoypad.pro @@ -15,7 +15,7 @@ icons.path = $$INSTALL_PREFIX/share/pixmaps/qjoypad icons.conf_path = $$PREFIX/share/pixmaps/qjoypad icons.extra = cp ../icons/* $${icons.path}; cd $${icons.path}; ln -sf gamepad4-24x24.png icon24.png; ln -sf gamepad3-64x64.png icon64.png; chmod -R a+r $${icons.path} -doc.path = $$INSTALL_PREFIX/share/doc/qjoypad3 +doc.path = $$INSTALL_PREFIX/share/doc/qjoypad4 doc.extra = cp ../README.txt ../LICENSE.txt $${doc.path} target.path = $$INSTALL_PREFIX/bin