File: Makefile

package info (click to toggle)
kerneloops 0.12%2Bgit20090217-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 408 kB
  • ctags: 90
  • sloc: ansic: 1,071; makefile: 111; sh: 54
file content (39 lines) | stat: -rw-r--r-- 843 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Request to translators: Please don't send me patches agaist .po files;
# experience has shown that this gets too mangled by email clients due
# to UTF-8 and such. What works best is just attaching the full .po file
# to an email.
#



SRC=$(wildcard *.po)
OBJ= $(SRC:.po=.mo)
INST= $(SRC:.po=.inst)

translations: $(OBJ)
	
%.mo: %.po
	-@msgfmt -o $@  $<

clean:
	rm -f *.mo *~

# hack to automate installation dynamicaly, without previous knowledge of 
# the po/mo file list (we fool make by pretending the need for .inst files).
install: $(OBJ) $(INST)

%.inst: %.mo
	mkdir -p $(DESTDIR)$(LOCALESDIR)/$*/LC_MESSAGES/
	-cp -f $< $(DESTDIR)$(LOCALESDIR)/$*/LC_MESSAGES/kerneloops.mo

uptrans: $(LG).po

$(LG).po: kerneloops.pot
ifdef LG
	msgmerge -U $@ $<
else
	@echo "Usage : make uptrans LG=xx # with xx = de, es, fi ..."
	@exit 1
endif