Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ghc.mk: Make install_docs rule sh-compatible
  • Loading branch information
bgamari committed Nov 16, 2015
1 parent 69822f0 commit 7485d0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ghc.mk
Expand Up @@ -929,14 +929,14 @@ ifneq "$(INSTALL_LIBRARY_DOCS)" ""
$(INSTALL_SCRIPT) $(INSTALL_OPTS) libraries/gen_contents_index "$(DESTDIR)$(docdir)/html/libraries/"
endif
ifneq "$(INSTALL_HTML_DOC_DIRS)" ""
# We need to filter out the directories so install doesn't choke on them
for i in $(INSTALL_HTML_DOC_DIRS); do \
$(INSTALL_DIR) "$(DESTDIR)$(docdir)/html/`basename $$i`"; \
for f in $$i/*; do \
# We filter out the directories so install doesn't choke on them \
if test -f $$f; then \
$(INSTALL_DOC) $(INSTALL_OPTS) "$$f" "$(DESTDIR)$(docdir)/html/`basename $$i`"; \
fi \
done \
for f in $$i/*; do \
if test -f $$f; then \
$(INSTALL_DOC) $(INSTALL_OPTS) "$$f" "$(DESTDIR)$(docdir)/html/`basename $$i`"; \
fi \
done \
done
endif

Expand Down

0 comments on commit 7485d0c

Please sign in to comment.