aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-11-13 19:52:52 +0000
committerD G Turner2012-11-13 19:52:52 +0000
commit05d97f33ecc9b2375bd5b7410458510c598da7a2 (patch)
treee3899efc76ad56173fa7487a485e0869c445134b
parent43520ce4f38c632eb438c6cada9224dad90e8621 (diff)
downloadscummvm-rg350-05d97f33ecc9b2375bd5b7410458510c598da7a2.tar.gz
scummvm-rg350-05d97f33ecc9b2375bd5b7410458510c598da7a2.tar.bz2
scummvm-rg350-05d97f33ecc9b2375bd5b7410458510c598da7a2.zip
BUILD: Remove stripping of executables on "make install".
This is now standard behaviour, and the current situation creates problems for distribution packagers trying to generate debug packages. A standard "install-strip" target has been added to enable the previous behaviour if needed.
-rw-r--r--ports.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/ports.mk b/ports.mk
index 4d7d6f6e60..eff0ea624f 100644
--- a/ports.mk
+++ b/ports.mk
@@ -2,12 +2,27 @@
# included by the default (main) Makefile.
#
-
#
# POSIX specific
#
install:
$(INSTALL) -d "$(DESTDIR)$(bindir)"
+ $(INSTALL) -c -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
+ $(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
+ $(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"
+ $(INSTALL) -d "$(DESTDIR)$(datarootdir)/pixmaps/"
+ $(INSTALL) -c -m 644 "$(srcdir)/icons/scummvm.xpm" "$(DESTDIR)$(datarootdir)/pixmaps/scummvm.xpm"
+ $(INSTALL) -d "$(DESTDIR)$(docdir)"
+ $(INSTALL) -c -m 644 $(DIST_FILES_DOCS) "$(DESTDIR)$(docdir)"
+ $(INSTALL) -d "$(DESTDIR)$(datadir)"
+ $(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(DIST_FILES_ENGINEDATA) "$(DESTDIR)$(datadir)/"
+ifdef DYNAMIC_MODULES
+ $(INSTALL) -d "$(DESTDIR)$(libdir)/scummvm/"
+ $(INSTALL) -c -m 644 $(PLUGINS) "$(DESTDIR)$(libdir)/scummvm/"
+endif
+
+install-strip:
+ $(INSTALL) -d "$(DESTDIR)$(bindir)"
$(INSTALL) -c -s -m 755 "./$(EXECUTABLE)" "$(DESTDIR)$(bindir)/$(EXECUTABLE)"
$(INSTALL) -d "$(DESTDIR)$(mandir)/man6/"
$(INSTALL) -c -m 644 "$(srcdir)/dists/scummvm.6" "$(DESTDIR)$(mandir)/man6/scummvm.6"