File: rules

package info (click to toggle)
mintstick 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,432 kB
  • sloc: python: 983; sh: 44; makefile: 12
file content (19 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

execute_after_dh_auto_install: buildmo

# https://github.com/linuxmint/mint-translations/blob/master/Makefile
PKGNAME = mintstick
MO_LOCALE_INSTALLDIR = $(CURDIR)/debian/$(PKGNAME)/usr/share/locale/
buildmo:
	for pofile in $(CURDIR)/debian/translation/$(PKGNAME)/*.po ; do \
	    lang="$$(echo $$pofile | sed 's/\.po$$//' | sed 's/.*\-//')"; \
	    mkdir -p $(MO_LOCALE_INSTALLDIR)/$$lang/LC_MESSAGES/ ; \
	    msgfmt -o $(MO_LOCALE_INSTALLDIR)/$$lang/LC_MESSAGES/$(PKGNAME).mo $$pofile ; \
	done

.PHONY: buildmo