build: merge "data/Makefile.am" into toplevel Makefile
This commit is contained in:
86
Makefile.am
86
Makefile.am
@@ -21,12 +21,15 @@ bin_PROGRAMS =
|
|||||||
libexec_PROGRAMS =
|
libexec_PROGRAMS =
|
||||||
lib_LTLIBRARIES =
|
lib_LTLIBRARIES =
|
||||||
pkglib_LTLIBRARIES =
|
pkglib_LTLIBRARIES =
|
||||||
|
service_DATA =
|
||||||
|
examples_DATA =
|
||||||
CLEANFILES =
|
CLEANFILES =
|
||||||
DISTCLEANFILES =
|
DISTCLEANFILES =
|
||||||
EXTRA_DIST =
|
EXTRA_DIST =
|
||||||
dist_hook =
|
dist_hook =
|
||||||
install_data_hook =
|
install_data_hook =
|
||||||
install_exec_hook =
|
install_exec_hook =
|
||||||
|
install_exec_local =
|
||||||
uninstall_hook =
|
uninstall_hook =
|
||||||
TESTS =
|
TESTS =
|
||||||
BUILT_SOURCES =
|
BUILT_SOURCES =
|
||||||
@@ -54,16 +57,19 @@ pkgconfig_DATA =
|
|||||||
pppd_plugindir = $(PPPD_PLUGIN_DIR)
|
pppd_plugindir = $(PPPD_PLUGIN_DIR)
|
||||||
pppd_plugin_LTLIBRARIES =
|
pppd_plugin_LTLIBRARIES =
|
||||||
|
|
||||||
|
examplesdir = $(docdir)/examples
|
||||||
|
|
||||||
rundir=$(runstatedir)/NetworkManager
|
rundir=$(runstatedir)/NetworkManager
|
||||||
statedir=$(localstatedir)/lib/NetworkManager
|
statedir=$(localstatedir)/lib/NetworkManager
|
||||||
|
|
||||||
dbusactivationdir = $(datadir)/dbus-1/system-services
|
dbusactivationdir = $(datadir)/dbus-1/system-services
|
||||||
|
|
||||||
|
servicedir = $(datadir)/dbus-1/system-services
|
||||||
|
|
||||||
completiondir = $(datadir)/bash-completion/completions
|
completiondir = $(datadir)/bash-completion/completions
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
. \
|
. \
|
||||||
data \
|
|
||||||
po \
|
po \
|
||||||
man \
|
man \
|
||||||
examples
|
examples
|
||||||
@@ -3389,6 +3395,82 @@ uninstall_hook += uninstall-hook-nmtui
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# data
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
data_edit = sed \
|
||||||
|
-e 's|@bindir[@]|$(bindir)|g' \
|
||||||
|
-e 's|@sbindir[@]|$(sbindir)|g' \
|
||||||
|
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
|
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
||||||
|
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
||||||
|
-e 's|@DISTRO_NETWORK_SERVICE[@]|$(DISTRO_NETWORK_SERVICE)|g'
|
||||||
|
|
||||||
|
if HAVE_SYSTEMD
|
||||||
|
|
||||||
|
systemdsystemunit_DATA = \
|
||||||
|
data/NetworkManager.service \
|
||||||
|
data/NetworkManager-wait-online.service \
|
||||||
|
data/NetworkManager-dispatcher.service
|
||||||
|
|
||||||
|
data/NetworkManager.service: $(srcdir)/data/NetworkManager.service.in
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
|
||||||
|
if HAVE_SYSTEMD_200
|
||||||
|
data/NetworkManager-wait-online.service: $(srcdir)/data/NetworkManager-wait-online.service.in
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
else
|
||||||
|
data/NetworkManager-wait-online.service: $(srcdir)/data/NetworkManager-wait-online-systemd-pre200.service.in
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
endif
|
||||||
|
|
||||||
|
data/NetworkManager-dispatcher.service: $(srcdir)/data/NetworkManager-dispatcher.service.in
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
|
||||||
|
data/org.freedesktop.NetworkManager.service: $(srcdir)/data/org.freedesktop.NetworkManager.service.in
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
|
||||||
|
service_DATA += data/org.freedesktop.NetworkManager.service
|
||||||
|
|
||||||
|
install-exec-local-data:
|
||||||
|
install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
||||||
|
ln -sf $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
||||||
|
|
||||||
|
install_exec_local += install-exec-local-data
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
examples_DATA += data/server.conf
|
||||||
|
|
||||||
|
if WITH_UDEV_DIR
|
||||||
|
udevrulesdir = $(UDEV_DIR)/rules.d
|
||||||
|
udevrules_DATA = \
|
||||||
|
data/84-nm-drivers.rules \
|
||||||
|
data/85-nm-unmanaged.rules
|
||||||
|
endif
|
||||||
|
|
||||||
|
data/server.conf: $(srcdir)/data/server.conf.in
|
||||||
|
mkdir -p data/
|
||||||
|
$(data_edit) $< >$@
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
|
data/NetworkManager.service.in \
|
||||||
|
data/NetworkManager-wait-online.service.in \
|
||||||
|
data/NetworkManager-wait-online-systemd-pre200.service.in \
|
||||||
|
data/NetworkManager-dispatcher.service.in \
|
||||||
|
data/org.freedesktop.NetworkManager.service.in \
|
||||||
|
data/84-nm-drivers.rules \
|
||||||
|
data/85-nm-unmanaged.rules \
|
||||||
|
data/server.conf.in
|
||||||
|
|
||||||
|
CLEANFILES += \
|
||||||
|
data/NetworkManager.service \
|
||||||
|
data/NetworkManager-wait-online.service \
|
||||||
|
data/NetworkManager-dispatcher.service \
|
||||||
|
data/org.freedesktop.NetworkManager.service \
|
||||||
|
data/server.conf
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
girdir = $(datadir)/gir-1.0
|
girdir = $(datadir)/gir-1.0
|
||||||
@@ -3482,6 +3564,8 @@ dist-hook: $(dist_hook)
|
|||||||
|
|
||||||
install-exec-hook: $(install_exec_hook)
|
install-exec-hook: $(install_exec_hook)
|
||||||
|
|
||||||
|
install-exec-local: $(install_exec_local)
|
||||||
|
|
||||||
install-data-hook: $(install_data_hook)
|
install-data-hook: $(install_data_hook)
|
||||||
$(mkinstalldirs) -m 0755 $(DESTDIR)$(rundir)
|
$(mkinstalldirs) -m 0755 $(DESTDIR)$(rundir)
|
||||||
$(mkinstalldirs) -m 0700 $(DESTDIR)$(statedir)
|
$(mkinstalldirs) -m 0700 $(DESTDIR)$(statedir)
|
||||||
|
@@ -1146,7 +1146,6 @@ man/Makefile
|
|||||||
man/common.ent
|
man/common.ent
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
policy/org.freedesktop.NetworkManager.policy.in
|
policy/org.freedesktop.NetworkManager.policy.in
|
||||||
data/Makefile
|
|
||||||
docs/Makefile
|
docs/Makefile
|
||||||
docs/api/Makefile
|
docs/api/Makefile
|
||||||
docs/api/version.xml
|
docs/api/version.xml
|
||||||
|
@@ -1,71 +0,0 @@
|
|||||||
|
|
||||||
if HAVE_SYSTEMD
|
|
||||||
systemdsystemunit_DATA = \
|
|
||||||
NetworkManager.service \
|
|
||||||
NetworkManager-wait-online.service \
|
|
||||||
NetworkManager-dispatcher.service
|
|
||||||
|
|
||||||
NetworkManager.service: NetworkManager.service.in
|
|
||||||
$(edit) $< >$@
|
|
||||||
|
|
||||||
if HAVE_SYSTEMD_200
|
|
||||||
NetworkManager-wait-online.service: NetworkManager-wait-online.service.in
|
|
||||||
$(edit) $< >$@
|
|
||||||
else
|
|
||||||
NetworkManager-wait-online.service: NetworkManager-wait-online-systemd-pre200.service.in
|
|
||||||
$(edit) $< >$@
|
|
||||||
endif
|
|
||||||
|
|
||||||
NetworkManager-dispatcher.service: NetworkManager-dispatcher.service.in
|
|
||||||
$(edit) $< >$@
|
|
||||||
|
|
||||||
servicedir = $(datadir)/dbus-1/system-services
|
|
||||||
service_in_files = org.freedesktop.NetworkManager.service.in
|
|
||||||
service_DATA = $(service_in_files:.service.in=.service)
|
|
||||||
|
|
||||||
$(service_DATA): $(service_in_files) Makefile
|
|
||||||
$(edit) $< >$@
|
|
||||||
|
|
||||||
install-exec-local:
|
|
||||||
install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
|
||||||
ln -sf $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
|
|
||||||
endif
|
|
||||||
|
|
||||||
examplesdir = $(docdir)/examples
|
|
||||||
examples_DATA = server.conf
|
|
||||||
|
|
||||||
if WITH_UDEV_DIR
|
|
||||||
udevrulesdir = $(UDEV_DIR)/rules.d
|
|
||||||
udevrules_DATA = \
|
|
||||||
84-nm-drivers.rules \
|
|
||||||
85-nm-unmanaged.rules
|
|
||||||
endif
|
|
||||||
|
|
||||||
server.conf: server.conf.in
|
|
||||||
$(edit) $< >$@
|
|
||||||
|
|
||||||
edit = sed \
|
|
||||||
-e 's|@bindir[@]|$(bindir)|g' \
|
|
||||||
-e 's|@sbindir[@]|$(sbindir)|g' \
|
|
||||||
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
|
|
||||||
-e 's|@localstatedir[@]|$(localstatedir)|g' \
|
|
||||||
-e 's|@libexecdir[@]|$(libexecdir)|g' \
|
|
||||||
-e 's|@DISTRO_NETWORK_SERVICE[@]|$(DISTRO_NETWORK_SERVICE)|g'
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
NetworkManager.service.in \
|
|
||||||
NetworkManager-wait-online.service.in \
|
|
||||||
NetworkManager-wait-online-systemd-pre200.service.in \
|
|
||||||
NetworkManager-dispatcher.service.in \
|
|
||||||
org.freedesktop.NetworkManager.service.in \
|
|
||||||
84-nm-drivers.rules \
|
|
||||||
85-nm-unmanaged.rules \
|
|
||||||
server.conf.in
|
|
||||||
|
|
||||||
CLEANFILES = \
|
|
||||||
NetworkManager.service \
|
|
||||||
NetworkManager-wait-online.service \
|
|
||||||
NetworkManager-dispatcher.service \
|
|
||||||
org.freedesktop.NetworkManager.service \
|
|
||||||
server.conf
|
|
||||||
|
|
Reference in New Issue
Block a user