diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 15:37:54 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2008-11-08 15:37:54 (GMT) |
commit | 2f2b28a1818ff3575dd082edecadda95a330b205 (patch) | |
tree | 1891f34f588666553d5b7e02217929768e5c8115 | |
parent | d86980231e6f08ecd592891a26ddbcf4e4186804 (diff) | |
download | mxe-2f2b28a1818ff3575dd082edecadda95a330b205.zip mxe-2f2b28a1818ff3575dd082edecadda95a330b205.tar.gz mxe-2f2b28a1818ff3575dd082edecadda95a330b205.tar.bz2 |
implemented 'make strip'
-rw-r--r-- | Makefile | 22 | ||||
-rw-r--r-- | doc/README | 4 |
2 files changed, 26 insertions, 0 deletions
@@ -49,6 +49,28 @@ $(PREFIX)/installed.$(1): $(addprefix $(PREFIX)/installed.,$($(1)_DEPS)) endef $(foreach PKG,$(PKG_RULES),$(eval $(call PKG_RULE,$(PKG),$(call TMP_DIR,$(PKG))))) +.PHONY: strip +strip: + rm -rf \ + $(PREFIX)/include \ + $(PREFIX)/info \ + $(PREFIX)/lib/libiberty.a \ + $(PREFIX)/man \ + $(PREFIX)/$(TARGET)/doc \ + $(PREFIX)/$(TARGET)/info \ + $(PREFIX)/$(TARGET)/man \ + $(PREFIX)/$(TARGET)/sbin \ + $(PREFIX)/$(TARGET)/share + -strip -s \ + $(PREFIX)/bin/* \ + $(PREFIX)/libexec/gcc/$(TARGET)/*/* \ + $(PREFIX)/$(TARGET)/bin/* + -$(TARGET)-strip -g \ + $(PREFIX)/lib/gcc/$(TARGET)/*/*.a \ + $(PREFIX)/lib/gcc/$(TARGET)/*/*.o \ + $(PREFIX)/$(TARGET)/lib/*.a \ + $(PREFIX)/$(TARGET)/lib/*.o + .PHONY: clean clean: rm -rf $(call TMP_DIR,*) $(PREFIX)/* @@ -25,6 +25,10 @@ Usage build package 'foo' and all dependencies + make strip + + strip all package builds and remove unnecessary files + make clean remove all package builds |