Index: build/generator/gen_make.py =================================================================== --- build/generator/gen_make.py (revision 11044) +++ build/generator/gen_make.py (working copy) @@ -271,14 +271,22 @@ # write the install-include rule includedir = build_path_join('$(includedir)', 'subversion-%s' % self.version) - self.ofile.write('install-include: %s\n' - '\t$(MKDIR) $(DESTDIR)%s\n' - % (string.join(self.includes), includedir)) + install_paths = [] for file in self.includes: - self.ofile.write('\t$(INSTALL_INCLUDE) %s $(DESTDIR)%s\n' - % (build_path_join('$(abs_srcdir)', file), - build_path_join(includedir, - build_path_basename(file)))) + install_path = build_path_join(includedir,build_path_basename(file)) + install_paths.append(install_path) + source_path = build_path_join('$(abs_srcdir)', file) + self.ofile.write( + '%s:\n' + '$(DESTDIR)%s: %s\n' + '\t$(MKDIR) $(DESTDIR)%s\n' + '\t$(INSTALL_INCLUDE) %s $(DESTDIR)%s\n' + % (source_path, + install_path, source_path, + includedir, + source_path, install_path)) + + self.ofile.write('install-include: %s\n' % string.join(install_paths)) # write shortcut targets for manually building specific items self.ofile.write('\n# handy shortcut targets\n')