]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/strip
s/TARGET/OBJECT/g
[ipfire-3.x.git] / lfs / strip
CommitLineData
edd536b6 1###############################################################################
edd536b6 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
edd536b6 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
edd536b6
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
edd536b6
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
edd536b6
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
be472d5a
MT
27PKG_NAME = strip
28VER = LFS
edd536b6 29
cf63eea7 30THISAPP = $(PKG_NAME)-$(VER)
6679675b 31OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
edd536b6
MT
32
33###############################################################################
34# Top-level Rules
35###############################################################################
36
6679675b 37install : $(OBJECT)
edd536b6 38
edd536b6
MT
39download :
40
edd536b6
MT
41###############################################################################
42# Installation Details
43###############################################################################
44
6679675b 45$(OBJECT) :
edd536b6 46
be472d5a
MT
47ifeq "$(STAGE)" "toolchain"
48 -strip --strip-debug $(TOOLS_DIR)/lib/*
79c439aa
MT
49 -strip --strip-all $(TOOLS_DIR)/{,usr/}{,s}bin/*
50 -rm -rf $(TOOLS_DIR)/{,share/}{info,man} \
51 $(TOOLS_DIR)/usr/{share,man,info} \
88068980
MT
52 $(TOOLS_DIR)/share/locale/* \
53 $(TOOLS_DIR)/var
3888140c 54 chown -R root:root $(LFS)$(TOOLS_DIR)
edd536b6 55endif
cf63eea7
MT
56
57ifeq "$(STAGE)" "packages"
83876b66 58 -$(TOOLS_DIR)/bin/find $(LFS)/{,usr/}{bin,lib,sbin} -type f -exec \
79fda7b6 59 $(TOOLS_DIR)/bin/strip --strip-debug '{}' ';' &>/dev/null
83876b66 60 -$(TOOLS_DIR)/bin/find $(LFS)/{,usr/}{bin,sbin} -type f -exec \
79fda7b6 61 $(TOOLS_DIR)/bin/strip --strip-all '{}' ';' &>/dev/null
cf63eea7 62endif