build: minor change creating symlinks in install-exec-hook for nmtui
authorThomas Haller <thaller@redhat.com>
Thu, 7 Jan 2016 16:38:32 +0000 (17:38 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 7 Jan 2016 16:41:58 +0000 (17:41 +0100)
clients/tui/Makefile.am

index 0ce3cc4..caf792e 100644 (file)
@@ -25,12 +25,12 @@ links = nmtui-edit nmtui-connect nmtui-hostname
 
 install-exec-hook:
        for link in $(links); do \
-               cd $(DESTDIR)$(bindir) && $(LN_S) -f nmtui $$link; \
+               $(LN_S) -f nmtui "$(DESTDIR)$(bindir)/$$link"; \
        done
 
 uninstall-hook:
        for link in $(links); do \
-               rm -f $(DESTDIR)$(bindir)/$$link; \
+               rm -f "$(DESTDIR)$(bindir)/$$link"; \
        done
 
 nmtui_SOURCES = \