## Copyright 2012, 2013 Intel Corporation All Rights Reserved. ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; ## version 2.1 of the License. ## ## This library is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Fifth Floor, ## Boston, MA 02110-1301 USA EXTRA_DIST = settingsd.conf.in pkgsysconf_DATA = settingsd.conf pkgsysconfdir = $(sysconfdir)/@PACKAGE@ ## Silent mode output for settingsd config file generation. config_verbose = $(config_verbose_$(V)) config_verbose_ = $(config_verbose_$(AM_DEFAULT_VERBOSITY)) config_verbose_0 = @echo CONFGEN $@; ## The configure script won't fully expand $libdir so leverage `make' ## based variable expansion instead. settingsd.conf: Makefile settingsd.conf.in $(config_verbose)rm -f $@ $@.tmp; \ srcdir=''; \ test -f ./$@.in || srcdir=$(srcdir)/; \ sed \ -e 's,@pkglibdir[@],$(pkglibdir),g' \ -e 's,@websocketport[@],$(websocketport),g' \ $${srcdir}$@.in >$@.tmp; \ chmod 644 $@.tmp; \ mv $@.tmp $@ CLEANFILES = settingsd.conf