TIVI-1924: Initial commit of IVI settings daemon.
[profile/ivi/settings-daemon.git] / etc / Makefile.am
1 ## Copyright 2012, 2013 Intel Corporation All Rights Reserved.
2 ##
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation;
6 ## version 2.1 of the License.
7 ##
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ## Lesser General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 ## Boston, MA  02110-1301  USA
17
18 EXTRA_DIST = settingsd.conf.in
19
20 pkgsysconf_DATA = settingsd.conf
21 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
22
23 ## Silent mode output for settingsd config file generation.
24 config_verbose = $(config_verbose_$(V))
25 config_verbose_ = $(config_verbose_$(AM_DEFAULT_VERBOSITY))
26 config_verbose_0 = @echo CONFGEN $@;
27
28 ## The configure script won't fully expand $libdir so leverage `make'
29 ## based variable expansion instead.
30 settingsd.conf: Makefile settingsd.conf.in
31         $(config_verbose)rm -f $@ $@.tmp; \
32         srcdir=''; \
33                 test -f ./$@.in || srcdir=$(srcdir)/; \
34                 sed \
35                         -e 's,@pkglibdir[@],$(pkglibdir),g' \
36                         -e 's,@websocketport[@],$(websocketport),g' \
37                         $${srcdir}$@.in >$@.tmp; \
38         chmod 644 $@.tmp; \
39         mv $@.tmp $@
40
41 CLEANFILES = settingsd.conf