Do not regenerate po files, but generate pot file
Makefile
| 1 | 1 | # keep po files, even if they are sometimes generated, and keep downloaded dictionaries around | |
| 2 | 2 | .PRECIOUS: po/%.po dictionaries/% | |
| 3 | 3 | ||
| 4 | - | all: site | |
| 4 | + | all: site po/nani.pot | |
| 5 | 5 | ||
| 6 | 6 | # To be filled by included files | |
| 7 | 7 | # DICOS is the list of generated dictionaries | |
… | |||
| 60 | 60 | @mkdir -p $$(dirname $@) | |
| 61 | 61 | msgfmt --output-file=$@ $< | |
| 62 | 62 | ||
| 63 | - | po/%.po: po/nani.pot | |
| 64 | - | if [ -f $@ ]; then \ | |
| 65 | - | msgmerge --update $@ $< ;\ | |
| 66 | - | else \ | |
| 67 | - | msginit --input=$< --locale=$$(printf $$(basename $@) | sed 's|.po$$||') --output=$@ ;\ | |
| 68 | - | fi | |
| 69 | - | ||
| 70 | 63 | po/nani.pot: $(HAUNT_FILES) tools/list.scm | |
| 71 | 64 | xgettext --keyword=_ --language=scheme --add-comments --sort-output --from-code UTF-8 -o $@ $^ | |
| 72 | 65 | ||