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