Ignore:
Timestamp:
Nov 19, 2010, 12:06:42 PM (15 years ago)
Author:
bird
Message:

tools/G*.kmk: Add dummy source rule/dep to the gcc generated dependency files to make it less painful to move a source file without changing the target names. Fixes #101.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/GCC4MACHO.kmk

    r2413 r2431  
    136136                -o $(obj)\
    137137                -
     138        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    138139endef
    139140else  # !KBUILD_USE_KOBJCACHE
     
    145146                -o $(obj)\
    146147                $(abspath $(source))
     148        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    147149endef
    148150endif # !KUSE_OBJCACHE
     
    178180                -o $(obj)\
    179181                -
     182        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    180183endef
    181184else  # !KBUILD_USE_KOBJCACHE
     
    187190                -o $(obj)\
    188191                $(abspath $(source))
     192        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    189193endef
    190194endif # !KBUILD_USE_KOBJCACHE
     
    220224                -o $(obj)\
    221225                -
     226        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    222227endef
    223228else  # !KBUILD_USE_KOBJCACHE
     
    229234                -o $(obj)\
    230235                $(abspath $(source))
     236        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    231237endef
    232238endif # !KBUILD_USE_KOBJCACHE
     
    262268                -o $(obj)\
    263269                -
     270        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    264271endef
    265272else  # !KBUILD_USE_KOBJCACHE
     
    271278                -o $(obj)\
    272279                $(abspath $(source))
     280        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    273281endef
    274282endif # !KBUILD_USE_KOBJCACHE
     
    297305                -o $(obj)\
    298306                $(abspath $(source))
     307        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
    299308endef
    300309
Note: See TracChangeset for help on using the changeset viewer.