diff options
Diffstat (limited to 'lib/am/scripts.am')
-rw-r--r-- | lib/am/scripts.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/am/scripts.am b/lib/am/scripts.am index 5211ab55e..7f1169d85 100644 --- a/lib/am/scripts.am +++ b/lib/am/scripts.am @@ -28,7 +28,10 @@ install-%DIR%SCRIPTS: $(%DIR%_SCRIPTS) @test -n '$(and $(%DIR%_SCRIPTS),$(%NDIR%dir))' || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \ - $(foreach i,$(%DIR%_SCRIPTS), \ +## Ending a recipe with a backslash cause some shells to choke, +## so add a dummy ':' command to make sure the rest of the command +## is not empty. + :; $(foreach i,$(%DIR%_SCRIPTS), \ p=$(call am.vpath.rewrite,$i); \ ## If the _SCRIPTS variable has an entry like foo/bar, install it as ## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a new dir |