summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 62a8f3347a5179278d30c814fc61c66ec64a82b2 (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
# Dbus service file
if BUILD_DBUS_SERVICE
servicedir = $(DBUS_SERVICE_PATH)
service_in_files = hfpd.service.in
service_DATA = $(service_in_files:.service.in=.service)

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

# Glade XML file
glade_DATA = hfconsole.glade dsp-sidebar.png
gladedir = $(datadir)/hfconsole

bin_PROGRAMS = hfconsole

hfconsole_SOURCES = hfconsole.in

hfconsole: hfconsole.in Makefile
	@sed -e "s|\@gladedir\@|$(gladedir)|" $< > $@
	@chmod +x $@

EXTRA_DIST = $(service_in_files) $(glade_DATA)
CLEANFILES = $(service_DATA) $(hfconsole_PROGRAMS)