mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 10:22:16 +02:00
Makefile: create parent directories
cp requires the destination directories to already exist. If they do not exist, it will fail. When packaging applications, it's common they are installed in an empty directory where the expected directory structure does not exist yet. Use `install -D` to copy the files to copy the files so that parent diretories are automatically created. Signed-off-by: Kevin Daudt <me@ikke.info>
This commit is contained in:
parent
fff5f43a15
commit
4ef1aabd4d
7
Makefile
7
Makefile
@ -34,10 +34,11 @@ Documentation/html/git-filter-repo.html:
|
||||
git show origin/docs:html/git-filter-repo.html >Documentation/html/git-filter-repo.html
|
||||
|
||||
install: snag_docs #fixup_locale
|
||||
cp -a git-filter-repo "$(bindir)/"
|
||||
install -Dm0755 git-filter-repo "$(bindir)/git-filter-repo"
|
||||
install -dm0755 "$(pythondir)"
|
||||
ln -sf "$(bindir)/git-filter-repo" "$(pythondir)/git_filter_repo.py"
|
||||
cp -a Documentation/man1/git-filter-repo.1 "$(mandir)/man1/git-filter-repo.1"
|
||||
cp -a Documentation/html/git-filter-repo.html "$(htmldir)/git-filter-repo.html"
|
||||
install -Dm0644 Documentation/man1/git-filter-repo.1 "$(mandir)/man1/git-filter-repo.1"
|
||||
install -Dm0644 Documentation/html/git-filter-repo.html "$(htmldir)/git-filter-repo.html"
|
||||
if which mandb > /dev/null; then mandb; fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user