File: Makefile

package info (click to toggle)
lightdm-settings 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,276 kB
  • sloc: python: 784; makefile: 15; sh: 1
file content (13 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
all: buildmo

buildmo:
	@echo "Building the mo files"
	# WARNING: the second sed below will only works correctly with the languages that don't contain "-"
	for file in `ls po/*.po`; do \
		lang=`echo $$file | sed 's@po/@@' | sed 's/.po//' | sed 's/lightdm-settings-//'`; \
		install -d usr/share/locale/$$lang/LC_MESSAGES/; \
		msgfmt -o usr/share/locale/$$lang/LC_MESSAGES/lightdm-settings.mo $$file; \
	done \

clean:
	rm -rf usr/share/locale