owntone-server/contrib/Makefile.am

19 lines
515 B
Makefile

# $Id$
#
SUBDIRS = init.d
EXTRA_DIST = README mt-daapd.spec mt-daapd.conf.templ mt-daapd-ssc.sh mt-daapd-ssc.pl
BUILT_SOURCES = mt-daapd.conf
bin_SCRIPTS = mt-daapd-ssc.sh
dbdir="/var/cache/mt-daapd"
mt-daapd.conf: mt-daapd.conf.templ ../config.h
if [ "$(prefix)" = "/usr" ]; then \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g mt-daapd.conf.templ >$@; \
else \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],$(prefix)/var/cache/mt-daapd,g mt-daapd.conf.templ >$@; \
fi