integrated stripping executable into distribution build target
authorHolger Schemel <info@artsoft.org>
Tue, 22 Dec 2015 11:20:54 +0000 (12:20 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 22 Dec 2015 11:20:54 +0000 (12:20 +0100)
Makefile
src/Makefile

index c944d58b08a3916d02918d7a18a26c275f186f4f..41840b0cb6e2734dd816b2dd57051631069f5bfa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -76,9 +76,6 @@ mac:
 cross-win32:
        @PATH=$(CROSS_PATH_WIN32)/bin:${PATH} $(MAKE_CMD) PLATFORM=cross-win32
 
-strip:
-       @$(MAKE_CMD) strip
-
 clean:
        @$(MAKE_CMD) clean
 
index 9dcc3d95fedf237109fa91fa8000bb4e48b63fe7..f0dd3e00879b88c267ab6ad4ba2a72fedf7e8333 100644 (file)
@@ -215,9 +215,9 @@ all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME) graphics_dir
 
 $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
        $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
-
-strip: $(PROGNAME)
+ifdef BUILD_DIST
        strip $(PROGNAME)
+endif
 
 libgame_dir:
        @$(MAKE) -C $(LIBGAME_DIR)