File: Makefile

package info (click to toggle)
cinnamon-translations 2.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 46,212 kB
  • ctags: 46
  • sloc: python: 441; makefile: 16; sh: 6
file content (18 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

all: buildmo

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

clean:
	rm -rf usr
	./cleanup.sh