summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 883846c..b53c109 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -86,18 +86,20 @@ really-clean: distclean
if ENABLE_SYMLINK
install-exec-hook:
@set -e; \
+ dir="$(DESTDIR)$(bindir)"; \
dst="$$(printf 'atsign' | \
sed '$(transform); s/$$/$(EXEEXT)/')"; \
- src='$(DESTDIR)$(bindir)/@$(EXEEXT)'; \
- echo " $(LN_S) '$${dst}' '$${src}'"; \
- $(LN_S) "$${dst}" "$${src}"
+ src='@$(EXEEXT)'; \
+ echo " (cd '$${dir}' && $(LN_S) '$${dst}' '$${src}')"; \
+ (cd "$${dir}" && $(LN_S) "$${dst}" "$${src}")
install-data-hook:
@set -e; \
+ dir="$(DESTDIR)$(man1dir)"; \
dst="$$(printf 'atsign' | \
sed '$(transform); s/$$/$(EXEEXT)/').1"; \
- src='$(DESTDIR)$(man1dir)/@$(EXEEXT).1'; \
- echo " $(LN_S) '$${dst}' '$${src}'"; \
- $(LN_S) "$${dst}" "$${src}"
+ src='@$(EXEEXT).1'; \
+ echo " (cd '$${dir}' && $(LN_S) '$${dst}' '$${src}')"; \
+ (cd "$${dir}" && $(LN_S) "$${dst}" "$${src}")
uninstall-hook:
echo " rm -f '$(DESTDIR)$(bindir)/@$(EXEEXT)'"
rm -f "$(DESTDIR)$(bindir)/@$(EXEEXT)"