X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile;fp=Makefile;h=6aed88ff03159983cde5e6563472d4f3a6699521;hb=9d31b5b707ce47c530ae6825348f7070e40930b4;hp=8dac6d1d806b32a4f6e30ad22bebab60c3f933af;hpb=7e1d58ab7a2a7ab11ed9bc11731bc0d1b3d89417;p=developers-reference.git diff --git a/Makefile b/Makefile index 8dac6d1..6aed88f 100644 --- a/Makefile +++ b/Makefile @@ -80,8 +80,11 @@ ifndef LINGUA FORCE: else $(LINGUA)/%.dbk: %.dbk $(patsubst %.dbk,po4a/$(LINGUA)/%.po,%.dbk) -# "-a ?" is only possible with po4a version in Squeeze, build is broken in Lenny with it - $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@ # -a ?po4a/$(@:.dbk=.add) +# $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@ -a ?po4a/$(@:.dbk=.add) +# workaround to "-a ?" only possible with po4a version in Squeeze, otherwise build is broken in Lenny + if [ -f po4a/$(@:.dbk=.add) ]; then \ + $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@ -a po4a/$(@:.dbk=.add); else \ + $(TRANSLATE) -m $< -p po4a/$(@:.dbk=.po) -l $@; fi $(LINGUA)/common.ent: common.ent cd $(@D) && ln -sf ../$(@F) .