source: trunk/kBuild/footer-misc.kmk@ 2521

Last change on this file since 2521 was 2521, checked in by bird, 14 years ago

footer.kmk: Split it up into several files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
RevLine 
[72]1# $Id: footer-misc.kmk 2521 2011-07-26 18:18:19Z bird $
2## @file
[2521]3# kBuild - Footer - Target lists - Pass 2 - Misc.
[72]4#
[1547]5
6#
[2521]7# Copyright (c) 2004-2011 knut st. osmundsen <bird-kBuild-spamx@anduin.net>
[72]8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
[106]13# the Free Software Foundation; either version source of the License, or
[72]14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
[353]23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
[72]24#
25#
[1547]26# As a special exception you are granted permission to include this file, via
[1599]27# the kmk include directive, as you wish without this in itself causing the
28# resulting makefile, program or whatever to be covered by the GPL license.
[1547]29# This exception does not however invalidate any other reasons why the makefile,
30# program, whatever should not be covered the GPL.
31#
32#
[72]33
34
35#
36# OTHERS
37#
[1504]38_OTHERS = $(OTHERS) $(OTHERS.$(KBUILD_TARGET)) $(OTHERS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))
[72]39
40
41
[2475]42#
[1646]43# TESTING
44#
[2475]45_TESTING += $(TESTING) \
46 $(TESTING.$(KBUILD_TARGET)) \
47 $(TESTING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \
48 $(TESTING.$(KBUILD_TARGET_ARCH)) \
49 $(TESTING.$(KBUILD_TARGET_CPU))
[988]50
[1646]51
[72]52#
[417]53# PACKING
54#
[2475]55_PACKING += $(PACKING) \
56 $(PACKING.$(KBUILD_TARGET)) \
57 $(PACKING.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \
58 $(PACKING.$(KBUILD_TARGET_ARCH)) \
59 $(PACKING.$(KBUILD_TARGET_CPU))
[417]60
61
62#
[72]63# DOCS
64#
65
66
67#
[353]68# DIRECTORIES
69#
[2475]70_DIR_ALL := $(sort $(addsuffix /,$(patsubst %/,%,$(_DIRS))) $(dir $(_OUT_FILES) $(_OBJS) $(_INSTALLS_FILES) $(_STAGE_FILES)))
71$(foreach directory,$(_INSTALLS_DIRS) $(_STAGE_DIRS), $(eval _DIR_ALL := $(filter-out $(directory),$(_DIR_ALL))))
[353]72
[380]73
[353]74define def_mkdir_rule
75$(directory):
[1496]76 %$$(call MSG_MKDIR,$$@)
[1599]77 $$(QUIET)$$(MKDIR) -p -- $$@
[72]78endef
79
[353]80$(foreach directory,$(_DIR_ALL),$(eval $(def_mkdir_rule)))
[72]81
[988]82ifdef KBUILD_PROFILE_SELF
[2008]83 $(evalcall def_profile_self, done directories)
[988]84endif
[183]85
[988]86
[72]87#
[353]88# NOTHING
[72]89#
[353]90do-nothing:
[2008]91 %$(call MSG_NOTHING)
[988]92ifdef KBUILD_PROFILE_SELF
[2008]93 @$(ECHO) 'prof: $(call _KBUILD_FMT_ELAPSED_EX, $(nanots ), $(_KBUILD_TS_HEADER_START)) - $(call _KBUILD_FMT_ELAPSED_EX, $(nanots ), $(_KBUILD_TS_PREV)) - executing $@'
94 ifeq ($(KBUILD_PROFILE_SELF),2)
[1456]95 @$(ECHO) 'stat: $(make-stats )'
[2008]96 endif
[988]97endif
[72]98
[183]99
[75]100#
[353]101# CLEAN UP
[75]102#
[353]103do-clean:
[1496]104 %$(call MSG_CLEAN)
[2475]105 $(QUIET)$(RM) -f -- \
106 $(_OUT_FILES) \
107 $(_OBJS) \
108 $(_DEPFILES) \
109 $(_DEPFILES_INCLUDED) \
110 $(_CLEAN_FILES) \
111 $(OTHER_CLEAN) \
112 $(_STAGE_FILES)
113 $(QUIET)$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- \
114 $(rsort $(dir $(_OUT_FILES) \
115 $(_OBJS) \
116 $(_DEPFILES) \
117 $(_DEPFILES_INCLUDED) \
118 $(_CLEAN_FILES) \
119 $(OTHER_CLEAN))\
120 $(_STAGE_DIRS) )
[72]121
Note: See TracBrowser for help on using the repository browser.