File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,15 @@ install: all installdirs
47
47
$(INSTALL_DATA) utils/errcodes.h '$(DESTDIR)$(includedir_server)/utils'
48
48
$(INSTALL_DATA) utils/fmgroids.h '$(DESTDIR)$(includedir_server)/utils'
49
49
$(INSTALL_DATA) utils/fmgrprotos.h '$(DESTDIR)$(includedir_server)/utils'
50
- # We don't use INSTALL_DATA for performance reasons --- there are a lot of files
51
- # (in fact, we have to take some pains to avoid overlength shell commands here)
52
- cp $(srcdir)/*.h '$(DESTDIR)$(includedir_server)'/
50
+ $(INSTALL_DATA) $(srcdir)/*.h '$(DESTDIR)$(includedir_server)'
53
51
for dir in $(SUBDIRS); do \
54
- cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
52
+ $(INSTALL_DATA) $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir || exit; \
55
53
done
56
54
ifeq ($(vpath_build ) ,yes)
57
55
for file in catalog/schemapg.h catalog/system_fk_info.h catalog/pg_*_d.h parser/gram.h storage/lwlocknames.h utils/probes.h; do \
58
- cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
56
+ $(INSTALL_DATA) $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
59
57
done
60
58
endif
61
- cd '$(DESTDIR)$(includedir_server)' && chmod $(INSTALL_DATA_MODE) *.h
62
- for dir in $(SUBDIRS); do \
63
- cd '$(DESTDIR)$(includedir_server)'/$$dir || exit; \
64
- chmod $(INSTALL_DATA_MODE) *.h || exit; \
65
- done
66
59
67
60
installdirs :
68
61
$(MKDIR_P ) ' $(DESTDIR)$(includedir)/libpq' ' $(DESTDIR)$(includedir_internal)/libpq'
You can’t perform that action at this time.
0 commit comments