So I have a repo with some of my config files and I'm trying to create a makefile to install them in the homedir. The problem I have is that when I run the following command straight in bashinstall -m 755 -d ~/path/to/dotfilesDir/ ~/seemingly nothing happens whileinstall -m 755 ~/path/to/dotfilesDir/{file1,file2,...} ~/works as intended.Why doesn't the first (easier and cleaner) solution work?
Problem with install command to copy a whole directory
shell;directory;file copy;utilities;coreutils
From a look at the man page, it seems that install will not do what you want.Indeed, the Synopsis section indicates a usage of the form:install [OPTION]... -d DIRECTORY...and later on, the man page says:-d, --directory            treat all arguments as directory names; create all components of            the specified directoriesSo it seems to me that the point of this option is to be able to install a complicated (but empty) directory structure  la mkdir -p ....You can accomplish what you want with a loop:for file in /path/to/DotFiles/dir/*;do    install -m 755 $file ~/doneOr, if there are many levels under /path/to/DotFiles/dir, you can use find:find /path/to/DotFiles/dir/ -type f -exec 'install -m 755 {} ~/' +