- -cp -rp ./local/html/* $(DESTDIR)/$(MASON_LOCAL_HTML_PATH)
- -cp -rp ./local/po/* $(DESTDIR)/$(LOCAL_LEXICON_PATH)
- -cp -rp ./local/etc/* $(DESTDIR)/$(LOCAL_ETC_PATH)
+ -( cd local/html && find . -type d -print ) | while read dir ; do \
+ $(INSTALL) -m 0755 -d "$(DESTDIR)$(MASON_LOCAL_HTML_PATH)/$$dir" ; \
+ done
+ -( cd local/html && find . -type f -print ) | while read file ; do \
+ $(INSTALL) -m 0644 "local/html/$$file" "$(DESTDIR)$(MASON_LOCAL_HTML_PATH)/$$file" ; \
+ done
+ -( cd local/po && find . -type d -print ) | while read dir ; do \
+ $(INSTALL) -m 0755 -d "$(DESTDIR)$(LOCAL_LEXICON_PATH)/$$dir" ; \
+ done
+ -( cd local/po && find . -type f -print ) | while read file ; do \
+ $(INSTALL) -m 0644 "local/po/$$file" "$(DESTDIR)$(LOCAL_LEXICON_PATH)/$$file" ; \
+ done
+ -( cd local/etc && find . -type d -print ) | while read dir ; do \
+ $(INSTALL) -m 0755 -d "$(DESTDIR)$(LOCAL_ETC_PATH)/$$dir" ; \
+ done
+ -( cd local/etc && find . -type f -print ) | while read file ; do \
+ $(INSTALL) -m 0644 "etc/$$file" "$(DESTDIR)$(LOCAL_ETC_PATH)/$$file" ; \
+ done