summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-14 13:06:00 +0100
committerwm4 <wm4@nowhere>2012-11-14 13:06:00 +0100
commitb60483a144e50177a99a1b34cf4e84a6787b6166 (patch)
tree2268682f9473f5b9046ffcaa54f89ee81f3d07c0 /Makefile
parente5f7976000af0fb8da5fd0c3a01cfd44e6e64516 (diff)
downloadmpv-b60483a144e50177a99a1b34cf4e84a6787b6166.tar.bz2
mpv-b60483a144e50177a99a1b34cf4e84a6787b6166.tar.xz
Makefile: don't strip by default, add install-strip targets
Now "make install" will never strip the binary. "make install-strip" always will. The behavior of --enable-debug is unchanged, other than having no influence anymore on the install targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 6e89491224..ec2389c26d 100644
--- a/Makefile
+++ b/Makefile
@@ -284,12 +284,13 @@ DEP_FILES = $(patsubst %.S,%.d,$(patsubst %.cpp,%.d,$(patsubst %.c,%.d,$(SOURCES
ALL_TARGETS += mpv$(EXESUF)
-INSTALL_NO_MAN_TARGETS += install-mpv
-INSTALL_TARGETS = $(INSTALL_NO_MAN_TARGETS)
+INSTALL_BIN += install-mpv
+INSTALL_BIN_STRIP += install-mpv-strip
+INSTALL_MAN =
ifeq ($(BUILD_MAN),yes)
- INSTALL_TARGETS += install-mpv-man
- ALL_TARGETS += DOCS/man/en/mpv.1
+ INSTALL_MAN += install-mpv-man
+ ALL_TARGETS += DOCS/man/en/mpv.1
endif
DIRS = . \
@@ -409,15 +410,19 @@ DOCS/man/en/mpv.1: DOCS/man/en/af.rst \
###### installation / clean / generic rules #######
-install: $(INSTALL_TARGETS)
-
-install-no-man: $(INSTALL_NO_MAN_TARGETS)
+install: $(INSTALL_BIN) $(INSTALL_MAN)
+install-no-man: $(INSTALL_BIN)
+install-strip: $(INSTALL_BIN_STRIP) $(INSTALL_MAN)
+install-strip-no-man: $(INSTALL_BIN_STRIP)
install-dirs:
if test ! -d $(BINDIR) ; then $(INSTALL) -d $(BINDIR) ; fi
install-%: %$(EXESUF) install-dirs
- $(INSTALL) -m 755 $(INSTALLSTRIP) $< $(BINDIR)
+ $(INSTALL) -m 755 $< $(BINDIR)
+
+install-%-strip: %$(EXESUF) install-dirs
+ $(INSTALL) -m 755 -s $< $(BINDIR)
install-mpv-man: install-mpv-man-en