1 ## Copyright 2012, 2013 Intel Corporation All Rights Reserved.
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.
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.
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
18 EXTRA_DIST = settingsd.conf.in
20 pkgsysconf_DATA = settingsd.conf
21 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
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 $@;
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; \
33 test -f ./$@.in || srcdir=$(srcdir)/; \
35 -e 's,@pkglibdir[@],$(pkglibdir),g' \
36 -e 's,@websocketport[@],$(websocketport),g' \
37 $${srcdir}$@.in >$@.tmp; \
41 CLEANFILES = settingsd.conf