Changeset 1599 for trunk/kBuild/footer.kmk
- Timestamp:
- May 1, 2008, 11:55:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r1547 r1599 25 25 # 26 26 # As a special exception you are granted permission to include this file, via 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. 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. 29 29 # This exception does not however invalidate any other reasons why the makefile, 30 30 # program, whatever should not be covered the GPL. … … 1490 1490 %$$(call MSG_FETCH_DL,$(target),$(source),$(out)) 1491 1491 @## @todo do fancy stuff like download continuation. 1492 $$(QUIET)$$(RM) -f $(out)1492 $$(QUIET)$$(RM) -f -- $(out) 1493 1493 $($(target)_$(srcname)_FETCH_CMDS_) 1494 1494 $$(QUIET)$(if $(md5),$$(MD5SUM_EXT) -b -C $(md5) $(out)) … … 1499 1499 $(out).checked_$(md5)_$(size): $($(target)_$(srcname)_FETCH_DEPEND_) | $($(target)_$(srcname)_FETCH_DEPORD_) 1500 1500 %$$(call MSG_FETCH_CHK,$(target),$(source),$(out)) 1501 $$(QUIET)$$(RM) -f $$@1501 $$(QUIET)$$(RM) -f -- $$@ 1502 1502 @# (re)fetch the file if it doesn't exist or if it doesn't matches the md5. 1503 1503 @## @todo do fancy stuff like download continuation. … … 1521 1521 | $($(target)_$(srcname)_UNPACK_DEPORD_) $(archive).checked_$(md5)_$(size) 1522 1522 %$$(call MSG_FETCH_UP,$(target),$(archive),$(inst)) 1523 $$(QUIET)$$(RM) -f $(out)1523 $$(QUIET)$$(RM) -f -- $(out) 1524 1524 @# if the source archive doesn't exist fetch it (can have been deleted to save space). 1525 1525 $$(QUIET)test -f $(archive) \ … … 1725 1725 $(out).lst: $(_TARGET_$(target)_UNPACKED) | $(call DIRDEP,$(inst)) 1726 1726 %$$(call MSG_FETCH_OK,$(target)) 1727 $$(QUIET)$$(RM) -f $$@ $$@.tmp1727 $$(QUIET)$$(RM) -f -- $$@ $$@.tmp 1728 1728 $$(QUIET2)$$(APPEND) $$@.tmp '$(notdir $(out))' 1729 1729 $$(QUIET)$(if $(_TARGET_$(target)_UNPACKED),$$(CAT_EXT) $(_TARGET_$(target)_UNPACKED) >> $$@.tmp) 1730 $$(QUIET)$$(MV) -f $$@.tmp $$@1730 $$(QUIET)$$(MV) -f -- $$@.tmp $$@ 1731 1731 1732 1732 $(out)_unfetched: 1733 1733 %$$(call MSG_UNFETCH,$(target)) 1734 $$(QUIET)$$(RM) -f $$(addprefix $(inst),$$(shell $$(CAT_EXT) $(out).lst 2> /dev/null | $$(SED) -e '/\/$$$$/d'))1735 $$(QUIET)$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $$(dir $$@) \1734 $$(QUIET)$$(RM) -f -- $$(addprefix $(inst),$$(shell $$(CAT_EXT) $(out).lst 2> /dev/null | $$(SED) -e '/\/$$$$/d')) 1735 $$(QUIET)$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- $$(dir $$@) \ 1736 1736 $$(addprefix $(inst),$$(sort $$(dir $$(shell $$(CAT_EXT) $(out).lst 2> /dev/null)))) 1737 $$(QUIET)$$(RM) -f $(out).lst $(out)1738 $$(QUIET)$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $$(dir $$@)1737 $$(QUIET)$$(RM) -f -- $(out).lst $(out) 1738 $$(QUIET)$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- $$(dir $$@) 1739 1739 1740 1740 $(out): $(comp-vars _TARGET_$(target)_DIGEST_PREV,_TARGET_$(target)_DIGEST,FORCE) | $(call DIRDEP,$(inst)) 1741 $$(QUIET)$$(RM) -f $$@1741 $$(QUIET)$$(RM) -f -- $$@ 1742 1742 %$$(if $$(_TARGET_$(target)_DIGEST),$$(if $$(wildcard $(out).lst)\ 1743 1743 ,$$(call MSG_REFETCH,$(target)),$$(call MSG_FETCH,$(target))),$$(call MSG_UNFETCH,$(target))) 1744 1744 $$(QUIET)$$(if $$(wildcard $(out).lst ),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out)_unfetched) 1745 $$(QUIET)$$(if $$(_TARGET_$(target)_DIGEST),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out).lst,$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $$(dir $$@))1745 $$(QUIET)$$(if $$(_TARGET_$(target)_DIGEST),$$(MAKE) -f $(MAKEFILE) --no-print-directory $(out).lst,$$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- $$(dir $$@)) 1746 1746 $$(QUIET2)$$(if $$(_TARGET_$(target)_DIGEST),$$(APPEND) $$@ "_TARGET_$(target)_DIGEST_PREV := $(_TARGET_$(target)_DIGEST)") 1747 1747 … … 1868 1868 %$$(call MSG_COMPILE,$(target),$(source),$$@,$(type)) 1869 1869 ifdef TOOL_$(tool)_COMPILE_$(type)_DONT_PURGE_OUTPUT 1870 $$(QUIET)$$(RM) -f $(dep) $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_OUTPUT_MAYBE_)1870 $$(QUIET)$$(RM) -f -- $(dep) $(obj) $($(target)_$(source)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) 1871 1871 endif 1872 1872 endif … … 1914 1914 $($(target)_DEPORD_) 1915 1915 %$$(call MSG_LINK,$(target),$$@,$(tool_do)) 1916 $$(QUIET)$$(RM) -f $(dep) $(out) $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_)1916 $$(QUIET)$$(RM) -f -- $(dep) $(out) $($(target)_OUTPUT_) $($(target)_OUTPUT_MAYBE_) 1917 1917 1918 1918 $(cmds) … … 1937 1937 $(INSTARGET_$(target)) : $(out) | $(call DIRDEP,$(dir $(INSTARGET_$(target)))) 1938 1938 %$$(call MSG_INST_TRG,$(target),$(out),$$@) 1939 $$(QUIET)$$(INSTALL) $$(if $(mode),-m $(mode)) $(out) $$@1939 $$(QUIET)$$(INSTALL) $$(if $(mode),-m $(mode)) -- $(out) $$@ 1940 1940 1941 1941 ifdef KBUILD_DO_AUTO_INSTALL … … 2851 2851 $(if $(gid),-g $(gid))\ 2852 2852 $(if $(mode),-m $(mode))\ 2853 $(flags) \2853 $(flags) -- \ 2854 2854 $(srcsrc) $(insdst) 2855 2855 endif … … 2867 2867 $(insdst) : | $(call DIRDEP,$(dir $(insdst))) 2868 2868 %$$(call MSG_INST_SYM,$(insdst),$(symdst)) 2869 $$(QUIET)$$(RM) -f $$@2869 $$(QUIET)$$(RM) -f -- $$@ 2870 2870 $$(QUIET)$$(LN_SYMLINK) $(symdst) $(insdst) 2871 2871 endef … … 2917 2917 $(if $(gid),-g $(gid))\ 2918 2918 $(if $(mode),-m $(mode))\ 2919 $(flags) \2919 $(flags) -- \ 2920 2920 $(insdst) 2921 2921 … … 3054 3054 $(directory): 3055 3055 %$$(call MSG_MKDIR,$$@) 3056 $$(QUIET)$$(MKDIR) -p $$@3056 $$(QUIET)$$(MKDIR) -p -- $$@ 3057 3057 endef 3058 3058 … … 3083 3083 do-clean: 3084 3084 %$(call MSG_CLEAN) 3085 $(QUIET)$(RM) -f $(_OUT_FILES) $(_OBJS) $(_DEPFILES) $(_DEPFILES_INCLUDED) $(_CLEAN_FILES) $(OTHER_CLEAN)3086 $(QUIET)$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist $(rsort $(dir $(_OUT_FILES) $(_OBJS) $(_DEPFILES) $(_DEPFILES_INCLUDED) $(_CLEAN_FILES) $(OTHER_CLEAN)))3085 $(QUIET)$(RM) -f -- $(_OUT_FILES) $(_OBJS) $(_DEPFILES) $(_DEPFILES_INCLUDED) $(_CLEAN_FILES) $(OTHER_CLEAN) 3086 $(QUIET)$(RMDIR) -p --ignore-fail-on-non-empty --ignore-fail-on-not-exist -- $(rsort $(dir $(_OUT_FILES) $(_OBJS) $(_DEPFILES) $(_DEPFILES_INCLUDED) $(_CLEAN_FILES) $(OTHER_CLEAN))) 3087 3087 3088 3088 … … 3232 3232 # @todo make this a non-default pass! 3233 3233 uninstall: 3234 $(RM) -f $(_INSTALLS_FILES)3234 $(RM) -f -- $(_INSTALLS_FILES) 3235 3235 3236 3236 install: pass_installs
Note:
See TracChangeset
for help on using the changeset viewer.