#!/usr/bin/make -f # # univention-directory-manager-modules # makefile # # Copyright 2014 Univention GmbH # # http://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero General Public License version 3 # (GNU AGPL V3) as published by the Free Software Foundation. # # Binary versions of this program provided by Univention to you as # well as other copyrighted, protected or trademarked materials like # Logos, graphics, fonts, specific documentations and configurations, # cryptographic keys etc. are subject to a license agreement between # you and Univention and not subject to the GNU AGPL V3. # # In the case you use this program under the terms of the GNU AGPL V3, # the program is provided 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 Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public # License with the Debian GNU/Linux or Univention distribution in file # /usr/share/common-licenses/AGPL-3; if not, see # . PKG := univention-directory-manager-modules VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: //p') PO_FILES := $(shell find modules/ -name "*.po" | grep -v .svn) .PHONY: build build:: l10n .PHONY: l10n l10n: $(PO_FILES) %.mo: %.po msgfmt --check --output-file "$@" "$<" %.po: xgettext --output=$(@).tmp \ --language=Python \ --keyword=N_:1 \ --package-name=$(PKG) \ --package-version=$(VERSION) \ --msgid-bugs-address="packages@univention.de" \ --copyright-holder="Univention GmbH" \ $(dir $@)*py if [ -e "$@" ]; then \ msgmerge --update --sort-output "$@" "$@".tmp; \ touch "$@"; \ else \ cp "$<" "$@"; \ fi rm -f "$@".tmp modules/univention/admin/de.po: $(wildcard modules/univention/admin/*.py) modules/univention/admin/handlers/policies/de.po: $(wildcard modules/univention/admin/handlers/policies/*.py) modules/univention/admin/handlers/users/de.po: $(wildcard modules/univention/admin/handlers/users/*.py) modules/univention/admin/handlers/shares/de.po: $(wildcard modules/univention/admin/handlers/shares/*.py) modules/univention/admin/handlers/mail/de.po: $(wildcard modules/univention/admin/handlers/mail/*.py) modules/univention/admin/handlers/groups/de.po: $(wildcard modules/univention/admin/handlers/groups/*.py) modules/univention/admin/handlers/de.po: $(wildcard modules/univention/admin/handlers/*.py) modules/univention/admin/handlers/networks/de.po: $(wildcard modules/univention/admin/handlers/networks/*.py) modules/univention/admin/handlers/legacy/policies/de.po: $(wildcard modules/univention/admin/handlers/legacy/policies/*.py) modules/univention/admin/handlers/legacy/computers/de.po: $(wildcard modules/univention/admin/handlers/legacy/computers/*.py) modules/univention/admin/handlers/kerberos/de.po: $(wildcard modules/univention/admin/handlers/kerberos/*.py) modules/univention/admin/handlers/nagios/de.po: $(wildcard modules/univention/admin/handlers/nagios/*.py) modules/univention/admin/handlers/dns/de.po: $(wildcard modules/univention/admin/handlers/dns/*.py) modules/univention/admin/handlers/computers/de.po: $(wildcard modules/univention/admin/handlers/computers/*.py) modules/univention/admin/handlers/container/de.po: $(wildcard modules/univention/admin/handlers/container/*.py) modules/univention/admin/handlers/settings/de.po: $(wildcard modules/univention/admin/handlers/settings/*.py) modules/univention/admin/handlers/dhcp/de.po: $(wildcard modules/univention/admin/handlers/dhcp/*.py)