tui: fix the build so we don't install libtool wrapper scripts

The nmtui development tree didn't use libtool, and the rules that
worked to install links in those Makefiles ended up causing the
libtool wrapper scripts to get installed here. Fix.
This commit is contained in:
Dan Winship 2013-12-17 11:06:07 -05:00
parent 14227fda8b
commit 250ed1a7dd

View file

@ -18,7 +18,20 @@ AM_CPPFLAGS= \
$(NULL)
bin_PROGRAMS = nmtui
bin_SCRIPTS = nmtui-edit nmtui-connect nmtui-hostname
noinst_SCRIPTS = nmtui-edit nmtui-connect nmtui-hostname
$(noinst_SCRIPTS):
ln -s nmtui $@
install-exec-hook:
for link in $(noinst_SCRIPTS); do \
ln -f $(DESTDIR)$(bindir)/nmtui $(DESTDIR)$(bindir)/$$link; \
done
uninstall-hook:
for link in $(noinst_SCRIPTS); do \
rm -f $(DESTDIR)$(bindir)/$$link; \
done
nmtui_SOURCES = \
nmtui.c \
@ -114,9 +127,6 @@ nmtui_LDADD = \
$(GLIB_LIBS) \
$(NULL)
$(bin_SCRIPTS):
ln -s nmtui $@
CLEANFILES = $(bin_SCRIPTS)
CLEANFILES = $(noinst_SCRIPTS)
endif