What should Linux/Unix 'make install' consist of?

后端 未结 3 1375
南笙
南笙 2020-12-07 19:22

I\'ve written a C++ program (command line, portable code) and I\'m trying to release a Linux version at the same time as the Windows version. I\'ve written a makefile as fol

3条回答
  •  醉酒成梦
    2020-12-07 19:45

    In the simplest case you just copy the newly created executable into the /usr/local/bin path. Of course, it's usually more complicated than that.

    Notice that most of these operations require special rights, which is why make install is usually invoked using sudo.

提交回复
热议问题