po: Avoid passing nonportable -D option to "install" program.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 8 Jun 2010 04:42:25 +0000 (21:42 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 8 Jun 2010 04:42:25 +0000 (21:42 -0700)
OpenBSD "install" and "install-sh" distributed with Autoconf do not
support -D, so we should not try to use it.

po/automake.mk

index 3d68a8f281f963427340794bfef8121ebaa3cfc6..945e2557bf4ae2234ac23dcee431c0b3cb11aa0b 100644 (file)
@@ -40,7 +40,8 @@ ALL_LOCAL += $(GMOFILES)
 install-data-hook: $(GMOFILES)
        for f in $(GMOFILES); do \
          lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
-         $(INSTALL) -D $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
+         $(MKDIR_P) $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES; \
+         $(INSTALL_DATA) $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
        done
 
 uninstall-hook: