summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: e942a4440209a531f9e68aeef5c38c69c2276a36 (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
# Telepathy manager file
managerdir = $(datadir)/telepathy/managers
manager_DATA = gabble.manager

# Dbus service file
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = org.freedesktop.Telepathy.ConnectionManager.gabble.service.in
service_DATA = $(service_in_files:.service.in=.service)

BUILT_FILES = $(service_DATA) $(manager_DATA)

CLEANFILES = $(BUILT_FILES)

EXTRA_DIST = $(service_in_files)

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

$(manager_DATA): always-build
	$(MAKE) -C ../src write-mgr-file
	../src/write-mgr-file > $@

.PHONY: always-build