/[cmucl]/src/lisp/GNUmakefile
ViewVC logotype

Diff of /src/lisp/GNUmakefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by agoncharov, Tue Jan 20 04:52:47 2009 UTC revision 1.33.14.5 by rtoy, Tue Mar 2 13:44:24 2010 UTC
# Line 1  Line 1 
1  # $Header$  # $Header$
2    
3  all: lisp.nm  all: lisp.nm translations
4    
5  -include internals.inc  -include internals.inc
6  include Config  include Config
# Line 59  Depends: ${SRCS} Line 59  Depends: ${SRCS}
59          mv ,depends Depends          mv ,depends Depends
60    
61  -include Depends  -include Depends
62    
63    # Find all directories in ../i18n/locale.  These are the locales we
64    # currently support.
65    
66    # This would be a nice way to do it so we don't have to keep track of
67    # the directories, but Solaris' find doesn't grok -depth 1
68    #LOCALES=$(patsubst ../i18n/locale/%, %, $(shell find ../i18n/locale -type d -depth 1))
69    LOCALES=en@piglatin ko
70    
71    # Convert locale names to the appropriate path where we want the mo files to go.
72    LOCALE_DIRS = $(patsubst %, i18n/locale/%/LC_MESSAGES, $(LOCALES))
73    
74    translations:
75            for pot in ../../src/i18n/locale/*.pot; do \
76              for po in $(LOCALE_DIRS); do \
77                d=`dirname $$pot`; \
78                f=`basename $$pot .pot`; \
79                touch ../../src/$$po/$$f.po; \
80                echo ; \
81                echo '***' Processing $$f.pot:  $$po; \
82                msgmerge -v ../../src/$$po/$$f.po $$pot -o ../../src/$$po/$$f.po; \
83                msgfmt -v  ../../src/$$po/$$f.po -o ../$$po/$$f.mo; \
84              done; done
85    
86    .PHONY : translations
87    

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.33.14.5

  ViewVC Help
Powered by ViewVC 1.1.5