avoid using hash in the sed, the interaction of make with the shell
seems to interpret the hash somewhere, despite being quoted, resulting
in loss of half of the sed command
INSTALL = @INSTALL@
INSTALL_subst = ${top_builddir}/subst-install
-list_sourcedir_dirs = \
- ( cd "$(srcdir)" && find . -name '.git' -prune -o -type d -print | sed 's#^./\?##' )
-
all:
install:
$(INSTALL) -d -m 755 -o "$(portageuser)" -g "$(portagegroup)" $(DESTDIR)$(PORTAGE_PYM)
- $(list_sourcedir_dirs) | while read f ; do \
+ ( cd "$(srcdir)" && find . -name '.git' -prune -o -type d -print | sed 's|^./\?||' ) | while read f ; do \
$(INSTALL) -d -m 755 \
-o "$(portageuser)" -g "$(portagegroup)" \
"$(DESTDIR)$(PORTAGE_PYM)/$${f}" && \