# # AUTHORS: # Copyright (C) 2003-2012 Opsview Limited. All rights reserved # # This file is part of Opsview # # Opsview 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 2 of the License, or # (at your option) any later version. # # Opsview 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 Opsview; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # INSTDIR=${DESTDIR}/usr/local/opsview-web NAGIOS_USER=nagios NAGIOS_GROUP=nagios FILES = bin lib root script Makefile.PL opsview_web.yml README etc all: opsview_web.yml dev: all version: @echo "Nothing to do!" opsview_web.yml: opsview_web.yml.in cp $@.in $@ debpkg: debpkg-common debpkg-common: all cp debian/changelog.in debian/changelog cp debian/control.in debian/control cp bin/opsview-web debian/opsview-web.init ls -l /var/log/opsview VERSION=`cat version` && cd debian && build/mkdeb $$VERSION-1 .. # See opsview-base's notes solpkg: rm -fr /tmp/opsview-web mkdir /tmp/opsview-web mksolpkg -s /tmp/opsview-web # Leave install macro to only install files and install-perms to change perms install: install -d ${INSTDIR} tar --exclude=.svn -cf - $(FILES) | (cd ${INSTDIR} && tar -xf -) install-dev: @echo "Nothing to do!" # Used by debian/rules install-perms: install chown -R $(NAGIOS_USER):$(NAGIOS_GROUP) ${INSTDIR} test: prove t/*.t gettext: xgettext.pl -P perl=* -P tt2=* --output=lib/Opsview/Web/I18N/messages.pot --directory=lib/ --directory=root/ msgmerge --no-location --no-wrap --no-fuzzy-matching --update lib/Opsview/Web/I18N/i_default.po lib/Opsview/Web/I18N/messages.pot # This is quick, so run it everytime $(MAKE) gettext-test # Check for missing strings utils/validate_i_default # Update all po files with new strings utils/add_new_strings gettext-auto: utils/auto_translate fr gettext-test: for i in lib/Opsview/Web/I18N/*.po; do msgfmt --output=/dev/null $$i || exit 1; done all: clean: rm -rf opsview-web.spec version blib .PHONY: all test debpkg version