mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00:00
Use one invocation of $INSTALL instead of looping
Speed up our Makefile by using $INSTALL once per type of file, rather than passing them individually.
This commit is contained in:
parent
439f233ccc
commit
1875222e93
1 changed files with 9 additions and 32 deletions
41
Makefile.in
41
Makefile.in
|
@ -677,42 +677,19 @@ install-force: all install-translations | show-datadir show-sysconfdir show-extr
|
||||||
@echo "Installing pkgconfig file"
|
@echo "Installing pkgconfig file"
|
||||||
$v $(INSTALL) -m 644 fish.pc $(DESTDIR)$(datadir)/pkgconfig
|
$v $(INSTALL) -m 644 fish.pc $(DESTDIR)$(datadir)/pkgconfig
|
||||||
@echo "Installing the $(bo)fish completion library$(sgr0)...";
|
@echo "Installing the $(bo)fish completion library$(sgr0)...";
|
||||||
$v for i in $(COMPLETIONS_DIR_FILES:%='%'); do \
|
$v $(INSTALL) -m 644 $(COMPLETIONS_DIR_FILES:%='%') $(DESTDIR)$(datadir)/fish/completions/
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/completions/; \
|
|
||||||
done;
|
|
||||||
@echo "Installing $(bo)fish functions$(sgr0)";
|
@echo "Installing $(bo)fish functions$(sgr0)";
|
||||||
$v for i in $(FUNCTIONS_DIR_FILES:%='%'); do \
|
$v $(INSTALL) -m 644 $(FUNCTIONS_DIR_FILES:%='%') $(DESTDIR)$(datadir)/fish/functions/
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/functions/; \
|
|
||||||
done;
|
|
||||||
@echo "Installing $(bo)man pages$(sgr0)";
|
@echo "Installing $(bo)man pages$(sgr0)";
|
||||||
$v $(INSTALL) -m 644 share/groff/* $(DESTDIR)$(datadir)/fish/groff/
|
$v $(INSTALL) -m 644 share/groff/* $(DESTDIR)$(datadir)/fish/groff/
|
||||||
$v for i in $(HELP_MANPAGES); do \
|
$v test -z "$(HELP_MANPAGES)" || $(INSTALL) -m 644 $(HELP_MANPAGES) $(DESTDIR)$(datadir)/fish/man/man1/
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/man/man1/; \
|
|
||||||
done;
|
|
||||||
@echo "Installing helper tools";
|
@echo "Installing helper tools";
|
||||||
$v for i in $(wildcard share/tools/*.py); do\
|
$v $(INSTALL) -m 755 share/tools/*.py $(DESTDIR)$(datadir)/fish/tools/
|
||||||
$(INSTALL) -m 755 $$i $(DESTDIR)$(datadir)/fish/tools/; \
|
$v $(INSTALL) -m 644 share/tools/web_config/*.* $(DESTDIR)$(datadir)/fish/tools/web_config/
|
||||||
done;
|
$v $(INSTALL) -m 644 share/tools/web_config/js/*.* $(DESTDIR)$(datadir)/fish/tools/web_config/js/
|
||||||
$v for i in share/tools/web_config/*.*; do\
|
$v $(INSTALL) -m 644 share/tools/web_config/partials/* $(DESTDIR)$(datadir)/fish/tools/web_config/partials/
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/tools/web_config/; \
|
$v $(INSTALL) -m 644 share/tools/web_config/sample_prompts/*.fish $(DESTDIR)$(datadir)/fish/tools/web_config/sample_prompts/
|
||||||
true; \
|
$v $(INSTALL) -m 755 share/tools/web_config/*.py $(DESTDIR)$(datadir)/fish/tools/web_config/
|
||||||
done;
|
|
||||||
$v for i in share/tools/web_config/js/*.*; do\
|
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/tools/web_config/js/; \
|
|
||||||
true; \
|
|
||||||
done;
|
|
||||||
$v for i in share/tools/web_config/partials/*; do\
|
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/tools/web_config/partials/; \
|
|
||||||
true; \
|
|
||||||
done;
|
|
||||||
$v for i in share/tools/web_config/sample_prompts/*.fish; do\
|
|
||||||
$(INSTALL) -m 644 $$i $(DESTDIR)$(datadir)/fish/tools/web_config/sample_prompts/; \
|
|
||||||
true; \
|
|
||||||
done;
|
|
||||||
$v for i in share/tools/web_config/*.py; do\
|
|
||||||
$(INSTALL) -m 755 $$i $(DESTDIR)$(datadir)/fish/tools/web_config/; \
|
|
||||||
true; \
|
|
||||||
done;
|
|
||||||
@echo "Installing online user documentation";
|
@echo "Installing online user documentation";
|
||||||
$v $(INSTALL) -m 755 -d $(DESTDIR)$(docdir)
|
$v $(INSTALL) -m 755 -d $(DESTDIR)$(docdir)
|
||||||
$v for i in user_doc/html/* CHANGELOG.md; do \
|
$v for i in user_doc/html/* CHANGELOG.md; do \
|
||||||
|
|
Loading…
Reference in a new issue