From: Theppitak Karoonboonyanan <theppitak@gmail.com>
Subject: Fix "make --shuffle=reverse" failure.
Origin: backport, https://github.com/tlwg/libdatrie/commit/2d8744283f0a8055ccd3c8d26be04bbce22a0870
Bug-Debian: https://bugs.debian.org/1105545

See Debian #1105545 for the report.

* tools/Makefile.am:
  - Make sure $(bindir) exists before installing old program
    symlink.

--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -10,6 +10,7 @@
 OLD_PROG_NAME=trietool-0.2
 
 install-data-hook:
+	$(MKDIR_P) $(DESTDIR)$(bindir)
 	rm -f $(DESTDIR)$(bindir)/$(OLD_PROG_NAME)
 	$(LN_S) trietool $(DESTDIR)$(bindir)/$(OLD_PROG_NAME)
 
