How to change qmake prefix location

I used below commands to install some things.

qmake PREFIX=/path/to/my/dir make make install 

However, the path I gave was wrong, how can I update PREFIX in the right place and delete the old installation, and then install again?

I tried:

 rm -rf /path/to/my/dir/bin # this is where the program being installed qmake PREFIX=/path/to/correct/dir make make install 

But it is still set on the old path.

+8
linux makefile
source share
1 answer

According to "qmake -h", this would set it globally:

qmake -set prefix /path/to/correct/dir

+7
source share

All Articles