I just built a large program that had some other programs in the source tree.
make install
just installed the main program, but I want to install all of the sub-programs that were built as well.
Is there a way to do this?
Note: by install I mean that I can type it from any shell, or through any program (though really I only care about make) and it will run.
What the
make install
command does depends on how the Makefile is written and what it consists.The most generic way of finding out what binaries, libraries, man pages, etc. your
make
command produces so that you can modify your Makefile could be like the one below. I assume you're in the top of your build directory.This should give you a list of files that have been modified since you've created the /tmp/tstamp file.
Compare the list of files being installed with
make install
with the list obtained by using thefind
command and add the desired remaining files to your Makefile.If you get that list and just want to make it work (in a quick and dirty manner), moving them to proper target locations should be a matter of a simple for loop one-liner, bearing in mind the --prefix (if any) you've specified during the build configuration stage.