#
#
# ProLinga-Run
#
# Copyright (C) 2002-2009 Xobas Software.
# All rights reserved.
#
# This file is part of ProLinga-Run.
#
# ProLinga-Run is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ProLinga-Run 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ProLinga-Run. If not, see .
#
# More information is available at the following addresses:
#
# Website : http://www.prolinga.org
#
# Email : prolinga-list@prolinga.org
#
#
# Process this file with automake to create Makefile.in
# export config files.
EXTRA_DIST = \
$(srcdir)/prolingaruncfg.xml \
$(srcdir)/prolingarund.init.in \
$(srcdir)/prolingarund.init
sysconf_DATA = prolingaruncfg.xml
# export API header files.
pkgincludedir = $(includedir)/prolinga
pkginclude_HEADERS = $(srcdir)/Run.hpp
noinst_DATA = $(INSERT_VALIDATE_CONFIG) $(INSERT_DATA_CONFIG) $(INSERT_REPOSITORY_CONFIG) prolingarund.init
insert_repository_config: prolingaruncfg.xml.in Makefile
if [ -r $(PROLINGAREPOSITORY_CONFIG_FILE) ]; then \
sed -e '//d' < prolingaruncfg.xml > run.tmp && \
sed -e '//!d' < $(PROLINGAREPOSITORY_CONFIG_FILE) > rep.tmp && \
sed -e '//r rep.tmp' < run.tmp > prolingaruncfg.xml && \
rm rep.tmp && \
rm run.tmp \
; fi
insert_data_config: prolingaruncfg.xml.in Makefile
if [ -r $(PROLINGADATA_CONFIG_FILE) ]; then \
sed -e '//d' < prolingaruncfg.xml > run.tmp && \
sed -e '//!d' < $(PROLINGADATA_CONFIG_FILE) > dat.tmp && \
sed -e '//r dat.tmp' < run.tmp > prolingaruncfg.xml && \
rm dat.tmp && \
rm run.tmp \
; fi
insert_validate_config: prolingaruncfg.xml.in Makefile
if [ -r $(PROLINGAVALIDATE_CONFIG_FILE) ]; then \
sed -e '//d' < prolingaruncfg.xml > run.tmp && \
sed -e '//!d' < $(PROLINGAVALIDATE_CONFIG_FILE) > val.tmp && \
sed -e '//r val.tmp' < run.tmp > prolingaruncfg.xml && \
rm val.tmp && \
rm run.tmp \
; fi
prolingarund.init: prolingarund.init.in Makefile
sed -e 's?\@bindir\@?$(bindir)?g' \
< $(srcdir)/prolingarund.init.in > prolingarund.tmp \
&& chmod +x prolingarund.tmp && mv prolingarund.tmp prolingarund.init
distclean: prolingarund.init
-@( \
rm prolingarund.init prolingaruncfg.xml Makefile)