]> git.draconx.ca Git - cdecl99.git/commitdiff
Add installdirs rule for .mo files.
authorNick Bowler <nbowler@draconx.ca>
Thu, 29 Sep 2011 00:05:55 +0000 (20:05 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 29 Sep 2011 00:05:55 +0000 (20:05 -0400)
Makefile.am

index 6dfd5a229ddf86f438ca438bb41cb5cc46cd9cfe..7c2099b8a9f2c5f810574bd714e9e42da4df2027 100644 (file)
@@ -91,6 +91,17 @@ install-mo: $(MOFILES)
                set +x; \
        done
 
+installdirs-local: installdirs-mo
+installdirs-mo:
+       for mo in $(MOFILES); do \
+               lang=`expr "$$mo" : '.*/\(.*\)\.mo' \| "$$mo" : '\(.*\)\.mo'`; \
+               test x"$$lang" = x"" && exit 1; \
+               inst="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES"; \
+               set -x; \
+               $(MKDIR_P) "$$inst" || exit $$?; \
+               set +x; \
+       done
+
 uninstall-local: uninstall-mo
 uninstall-mo:
        for mo in $(ALL_MOFILES); do \
@@ -102,7 +113,7 @@ uninstall-mo:
                set +x; \
        done
 
-.PHONY: install-mo uninstall-mo
+.PHONY: install-mo installdirs-mo uninstall-mo
 
 # These are required to prevent the builtin lex/yacc rules from
 # superseding ours...