File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ CCSHARED= @CCSHARED@
4343LINKFORSHARED= @LINKFORSHARED@
4444DESTSHARED= $(exec_prefix)/lib/python/$(MACHDEP)
4545
46+ # Portable install script (configure doesn't always guess right)
47+ INSTALL= @srcdir@/../install-sh -c
48+ INSTALL_PROGRAM=${INSTALL}
49+ INSTALL_DATA= ${INSTALL} -m 644
50+
4651# === Variables that are customizable by hand or by inclusion in Setup ===
4752
4853LINKCC= $(CC)
@@ -164,10 +169,13 @@ yuvconvert.o: yuvconvert.c
164169# Rules to build and install all shared modules
165170sharedmods: $(SHAREDMODS)
166171sharedinstall: $(DESTSHARED) $(SHAREDMODS)
167- -for i in dummy $(SHAREDMODS); do \
168- if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
172+ -for i in X $(SHAREDMODS); do \
173+ if test $$i != X; \
174+ then $(INSTALL_DATA) $$i $(DESTSHARED)/$$i; \
175+ fi; \
176+ done
169177
170178$(DESTSHARED):
171- mkdir $(DESTSHARED)
179+ mkdir $(DESTSHARED); chmod 755 $(DESTSHARED)
172180
173181# Stuff is appended here by makesetup and make depend
You can’t perform that action at this time.
0 commit comments