summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: f91d3a8255197277e62eeb265564915b7a934647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

if HAVE_SYSTEMD
systemdsystemunit_DATA = NetworkManager.service

NetworkManager.service: NetworkManager.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) $< >$@
endif

edit = sed \
	-e 's|@sbindir[@]|$(sbindir)|g' \
	-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
	-e 's|@localstatedir[@]|$(localstatedir)|g'

EXTRA_DIST = \
	NetworkManager.service.in \
	org.freedesktop.NetworkManager.service.in

CLEANFILES = NetworkManager.service org.freedesktop.NetworkManager.service