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

# Dbus service file
servicedir = $(DBUS_SYSTEM_SERVICES_DIR)
service_in_files = org.jaos.SlaptService.service.in
service_DATA = $(service_in_files:.service.in=.service)

# Dbus configuration file
configdir = $(DBUS_SYSCONFIG_DIR)
config_in_files = SlaptService.conf.in
config_DATA = $(config_in_files:.conf.in=.conf)

EXTRA_DIST = $(config_in_files) $(service_in_files)

# Rule to make the service file with sbindir expanded
$(service_DATA): $(service_in_files) Makefile
	@sed -e "s|\@servicedir\@|$(sbindir)|" $<> $@

# Rule to make the dbus configuration file
$(config_DATA): $(config_in_files) Makefile
	@sed -e "" $<> $@