+# install command
+INSTALL = install -p -m 0644 -D
+
+
+# install utility functions
+install_msg = echo " INSTALL $(1)"
+
+install_group = @$(call install_msg,$(2)) && \
+ cd reference && \
+ for f in `find $(1) -type f`; do \
+ $(call install,$$f,$(2)/$$f); \
+ done && \
+ cd .. && \
+ touch $@
+