#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PKGNAME=$(shell grep "^Package: " debian/control | head -1 | cut -f 2 -d\ ) PKG=$(shell pwd)/debian/$(PKGNAME) LOCALEDIR="$(PKG)/usr/share/locale-langpack/qcv/LC_MESSAGES/" COPYLOCALEDIR="$(PKG)/usr/share/locale-langpack/ca_ES@valencia/LC_MESSAGES/" EXTRALOCALEDIR="$(PKG)/usr/share/locale/qcv/LC_MESSAGES/" COPYEXTRALOCALEDIR="$(PKG)/usr/share/locale/ca_ES@valencia/LC_MESSAGES/" build: dh_testdir build-arch: build build-indep: build clean: dh_testdir dh_testroot dh_clean binary-arch: binary-indep: dh_testdir dh_testroot dh_installdirs dh_link -i # Create locale-langpack mkdir -p $(LOCALEDIR) mkdir -p $(COPYLOCALEDIR) find data -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -f -o $(LOCALEDIR)/\$$(basename \$${N%.po}.mo) \$$N" \; find data -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -f -o $(COPYLOCALEDIR)/\$$(basename \$${N%.po}.mo) \$$N" \; # Create extra-localedir -> locale mkdir -p $(EXTRALOCALEDIR) mkdir -p $(COPYEXTRALOCALEDIR) find data-locale -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -f -o $(EXTRALOCALEDIR)/\$$(basename \$${N%.po}.mo) \$$N" \; find data-locale -type f -name "*.po" -exec sh -c "N='{}'; msgfmt -f -o $(COPYEXTRALOCALEDIR)/\$$(basename \$${N%.po}.mo) \$$N" \; #find data-locale -type f -name "*.po" -exec sh -c "N='{}'; echo \$$N" \; install -o root -g root -m 0644 debian/lintian \ debian/$(PKGNAME)/usr/share/lintian/overrides/language-pack-gnome-qcv-base dh_install -i dh_installdocs -i dh_installchangelogs -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i -- -Z bzip2 binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary