- $(INSTALL_DIR) "$(DESTDIR)$(ghcheaderdir)"
- for d in $(includes_subdirs); do \
- $(INSTALL_DIR) "$(DESTDIR)$(ghcheaderdir)/$$d"; \
- done
- for i in $(subst includes/,,$(includes_H_FILES) $(includes_H_CONFIG) $(includes_H_PLATFORM)); do \
- $(INSTALL_HEADER) $(INSTALL_OPTS) includes/$$i "$(DESTDIR)$(ghcheaderdir)/$$i"; \
- done
+ $(call INSTALL_DIR,"$(DESTDIR)$(ghcheaderdir)")
+ $(foreach d,$(includes_H_SUBDIRS), \
+ $(call INSTALL_DIR,"$(DESTDIR)$(ghcheaderdir)/$d") && \
+ $(call INSTALL_HEADER,$(INSTALL_OPTS),includes/$d/*.h,"$(DESTDIR)$(ghcheaderdir)/$d/") && \
+ ) true
+ $(call INSTALL_HEADER,$(INSTALL_OPTS),$(includes_H_CONFIG) $(includes_H_PLATFORM),"$(DESTDIR)$(ghcheaderdir)/")
+