Ticket #1929 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Use 'make install', when it can work, instead of 'cp', when installing single files.

Reported by: robert@linuxfromscratch.org Assigned to: lfs-book@linuxfromscratch.org
Priority: lowest Milestone: Future
Component: Book Version: SVN
Severity: trivial Keywords:
Cc:

Description

I noticed Binutils hides the ld-new program in 'ld/.libs/ld-new' if the --enable-shared option is used, and 'ld/ld-new' is a script. This isn't a concern with LFS because the --enable-shared option does not get used until chapter 6, however I believe it is more educational to use:

make -C ld EXEEXT=-new install-exec-local

This command will install /tools/bin/ld-new and a hardlink to /tools/i686-pc-linux-gnu/bin/ld-new, and nothing else (no man pages, etc). Not many users know about the EXEEXT variable, or install-exec-local. I think using this new command would help shed a glimpse into the control available with the GNU make system, as well as being a more robust command.