diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-12-20 11:33:14 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-12-20 11:33:14 +0000 |
commit | 553d7485bfa7c9f4f27b0034fc1831cd4c704be0 (patch) | |
tree | eb13050b11c216bf59b63a62f7987c8a3d5e9439 | |
parent | 859354615bd6505a2768f5f0020b5cba123bf166 (diff) |
Use tar instead of cp -LR for make install, since older GNU cp
(i.e. RedHat 6.2) don't support -LR
-Erik
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -176,9 +176,10 @@ install_dev: install -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)/lib/ install -d $(PREFIX)$(DEVEL_PREFIX)/usr/lib install -d $(PREFIX)$(DEVEL_PREFIX)/include - cp -LR include/ $(PREFIX)$(DEVEL_PREFIX)/ + tar -chO include | tar -xC $(PREFIX)$(DEVEL_PREFIX); chmod 755 `find $(PREFIX)$(DEVEL_PREFIX) -type d` chmod 644 `find $(PREFIX)$(DEVEL_PREFIX)/include -name '*.h'` + (NAME=`whoami`; chown -R $$NAME.$$NAME $(PREFIX)$(DEVEL_PREFIX)) ifeq ($(strip $(HAVE_SHARED)),true) find lib/ -type l -name '*.so' -exec cp -a {} $(PREFIX)$(DEVEL_PREFIX)/lib ';' endif |