###################################################################### # Makefile August 2005 # # L7VSD: Linux Virtual Server for Layer7 Load Balancing # Copyright (C) 2005 NTT COMWARE Corporation. # # This program 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; either # version 2.1 of the License, or (at your option) any later version. # # This program 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 St, Fifth Floor, Boston, MA # 02110-1301 USA # ###################################################################### SUBDIRS = \ snmpagent \ logger \ parameter \ src \ module \ conf \ init.d \ l7directord \ man \ doc docdir = ${datadir}/doc/${PACKAGE}-${VERSION} dist_doc_DATA = \ README EXTRA_DIST = \ CHANGES \ INSTALL.debian \ INSTALL.ja.utf-8 \ VERSION \ genvers.sh \ ultramonkey-l7.spec \ ultramonkey-l7.spec.in l7vsadm_sockdir = @l7vsadm_sockdir@ l7vs_logdir = @l7vs_logdir@ ultramonkey-l7.spec: ultramonkey-l7.spec.in VERSION ( \ uml7version=`echo $(PACKAGE_VERSION) | sed -e 's/-.*//;'` ;\ uml7patchlv=`echo $(PACKAGE_VERSION) | sed -e 's/^[^-]*//; s/-//;'` ;\ cat $< |sed -e "s/@uml7version@/$$uml7version/g; s/@uml7patchlv@/$$uml7patchlv/g;" > $@ ; ) VERSION: (cd $(top_srcdir) ;\ echo `./genvers.sh` $< > $@.new ;\ mv -f $@.new $@ ;) release: (rm -f $(top_srcdir)/VERSION ;\ autoreconf -ifv $(top_srcdir) ;\ $(MAKE) distcheck ;) rpm: $(DIST_ARCHIVES) rpmbuild -ta $(DIST_ARCHIVES) install-data-hook: mkdir -p $(DESTDIR)$(l7vsadm_sockdir) mkdir -p $(DESTDIR)$(l7vs_logdir) extract_log.check: find $(distdir) -type f \( -name '*.c' -o -name '*.cpp' \) -print0 \ | xargs -0 perl $(distdir)/logger/extract_log \ > extract_log.out 2>/dev/null @(dupcount=`grep -c '^LOG_CAT_[0-9A-Z_]* (duplicate)' extract_log.out` || true ; \ if test x0 != x$$dupcount ;\ then \ echo "ERROR: Duplicated log ID found! " ;\ echo -n "ERROR: Check marked line as 'DUPLICATE' in " ;\ echo "extract_log.out" ;\ echo "=====================================================";\ grep 'DUPLICATE' extract_log.out ;\ echo "=====================================================";\ exit 1 ;\ else \ rm -f extract_log.out ;\ fi) distcheck-hook: extract_log.check