clients: reorganize source tree, put all the installed clients together

Create a new clients/ subdirectory at the top level, and move cli/ and
tui/ into it, as well as nm-online.c (which was previously in test/,
which made no sense).

cli/ was split into two subdirectories, src/ and completion/. While
this does simplify things (given that the completion file and the
binary both need to be named "nmcli"), it bloats the source tree, and
we can work around it by just renaming the completion file at install
time. Then we can combine the two directories into one and just have
it all under clients/cli/.
This commit is contained in:
Dan Winship 2014-07-22 17:55:13 -04:00
parent 25dac5760b
commit 3d25d70461
150 changed files with 86 additions and 72 deletions

11
.gitignore vendored
View file

@ -166,7 +166,6 @@ valgrind-*.log
/system-settings/src
/test/libnm-glib-test
/test/libnm_glib_test
/test/nm-online
/test/nmtestdevices
/libnm-util/nm-version.h
/libnm-util/nm-setting-docs.xml
@ -219,10 +218,10 @@ valgrind-*.log
/data/org.freedesktop.NetworkManager.service
/data/server.conf
/cli/src/nmcli
/cli/src/settings-docs.c
/tui/newt/libnmt-newt.a
/tui/nmtui
clients/cli/nmcli
clients/cli/settings-docs.c
clients/tui/newt/libnmt-newt.a
clients/tui/nmtui
clients/nm-online
/vapi/*.vapi

View file

@ -8,8 +8,7 @@ SUBDIRS = \
introspection \
src \
callouts \
cli \
tui \
clients \
tools \
policy \
data \

View file

@ -1,2 +0,0 @@
SUBDIRS = src completion

View file

@ -1,2 +0,0 @@
completiondir = $(datadir)/bash-completion/completions
dist_completion_DATA = nmcli

26
clients/Makefile.am Normal file
View file

@ -0,0 +1,26 @@
SUBDIRS = cli tui
AM_CPPFLAGS = \
-I${top_srcdir} \
-I${top_srcdir}/libnm-util \
-I${top_builddir}/libnm-util \
-I${top_srcdir}/libnm-glib \
-I${top_builddir}/libnm-glib \
-I${top_srcdir}/include \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS) \
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
-DNMLOCALEDIR=\"$(datadir)/locale\"
bin_PROGRAMS = nm-online
nm_online_SOURCES = nm-online.c
nm_online_CPPFLAGS = \
-DG_LOG_DOMAIN=\""nm-online"\" \
$(AM_CPPFLAGS)
nm_online_LDADD = \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(top_builddir)/libnm-util/libnm-util.la \
$(DBUS_LIBS) \
$(GLIB_LIBS)

View file

@ -47,3 +47,14 @@ endif
DISTCLEANFILES = settings-docs.c
EXTRA_DIST = settings-docs.c settings-docs.xsl
completiondir = $(datadir)/bash-completion/completions
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(completiondir)
$(INSTALL_DATA) $(srcdir)/nmcli-completion $(DESTDIR)$(completiondir)/nmcli
uninstall-hook:
rm -f $(DESTDIR)$(completiondir)/nmcli
EXTRA_DIST += nmcli-completion

Some files were not shown because too many files have changed in this diff Show more