[PATCH] Install all .mo files on all targets.
Dirk Hohndel
dirk at hohndel.org
Wed Oct 17 00:01:58 PDT 2012
The last couple of patches from you have been damaged and didn't
apply... so I guess you should go back to sending them as attachments
after all :-(
/D
Henrik Brautaset Aronsen <subsurface at henrik.synth.no> writes:
> Linux didn't have a locale install target, and Windows didn't install
> aliased locale files.
>
> Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
> ---
> Makefile | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index bbeec57..fedddb1 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -150,6 +150,10 @@ install: $(NAME)
> $(INSTALL) -d -m 755 $(XSLTDIR); \
> $(INSTALL) -m 644 $(XSLTFILES) $(XSLTDIR); \
> fi
> + for LOC in $(wildcard share/locale/*/LC_MESSAGES); do \
> + $(INSTALL) -d -m 755 $(prefix)/$$LOC; \
> + $(INSTALL) $$LOC/subsurface.mo $(prefix)/$$LOC/subsurface.mo; \
> + done
> install-macosx: $(NAME)
> $(INSTALL) -d -m 755 $(MACOSXINSTALL)/Contents/Resources
> @@ -184,9 +188,9 @@ install-cross-windows: $(NAME)
> $(INSTALL) -d -m 755 $(WINDOWSSTAGING)/$$MSG;\
> $(INSTALL) $(CROSS_LOCALE_PATH)/$$MSG/* $(WINDOWSSTAGING)/$$MSG;\
> done
> - for MSG in $(MSGOBJS); do\
> - $(INSTALL) -d -m 755 $$(dirname $(WINDOWSSTAGING)/$$MSG);\
> - $(INSTALL) $$MSG $(WINDOWSSTAGING)/$$MSG;\
> + for LOC in $(wildcard share/locale/*/LC_MESSAGES); do \
> + $(INSTALL) -d -m 755 $(WINDOWSSTAGING)/$$LOC; \
> + $(INSTALL) $$LOC/subsurface.mo $(WINDOWSSTAGING)/$$LOC/subsurface.mo; \
> done
> file.o: file.c dive.h file.h
> --
> 1.7.11.5
More information about the subsurface
mailing list