Advertisement
Guest User

Untitled

a guest
Dec 12th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. PO-FILES= cs.po es.po hu.po fr.po de.po ro.po it.po pt.po
  2. LANGUAGES=$(PO-FILES:.po=)
  3.  
  4. # Maybe this should be autogenerated by "configure".
  5. LOCALEDIR=/usr/share/locale
  6.  
  7. # If other files will be translated, they must be also here:
  8. CSOURCES=../ui/ui.c ../ui-hlp/menu.c \
  9. ../ui-hlp/play.c ../ui-hlp/ui_helper.c \
  10. ../engine/zoom.c ../engine/btrace.c \
  11. ../ui/dialog.c ../ui/filesel.c ../ui-hlp/render.c \
  12. ../ui/ui-drv/win32/ui_win32.c \
  13. ../ui/ui-drv/cocoa/AppController.m \
  14. ../ui/ui-drv/cocoa/CustomDialog.m
  15.  
  16.  
  17. MO-FILES = $(LANGUAGES:=.mo)
  18.  
  19. all: $(MO-FILES)
  20.  
  21. install: $(MO-FILES)
  22. @for i in $(LANGUAGES); do \
  23. /usr/bin/install -c -d $(DESTDIR)$(LOCALEDIR)/$$i/LC_MESSAGES; \
  24. /usr/bin/install -c -m 444 $$i.mo $(DESTDIR)$(LOCALEDIR)/$$i/LC_MESSAGES/xaos.mo; \
  25. done
  26.  
  27. install-win: $(MO-FILES)
  28. @for i in $(LANGUAGES); do \
  29. /usr/bin/install -c -d $(DESTDIR)/locale/$$i/LC_MESSAGES; \
  30. /usr/bin/install -c -m 444 $$i.mo $(DESTDIR)/locale/$$i/LC_MESSAGES/xaos.mo; \
  31. done
  32.  
  33. clean:
  34. rm -f $(MO-FILES)
  35.  
  36. distclean: clean
  37. rm Makefile
  38.  
  39. messages.pot: $(CSOURCES)
  40. : -o messages.pot $(CSOURCES)
  41.  
  42. $(PO-FILES): messages.pot
  43. test -e $@
  44. : $@ messages.pot > $@.new
  45. mv $@.new $@
  46.  
  47. $(MO-FILES): $(PO-FILES)
  48. : -o $@ -c -v --statistics $(@:.mo=.po)
  49.  
  50. new-languages: Makefile
  51. @for i in $(LANGUAGES); do \
  52. test -e $$i.po || cp messages.pot $$i.po; \
  53. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement