Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • Makefile.lib
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    kbuild: remove unnecessary $(subst $(obj)/, , ...) in modname-multi · 8cd0e46d
    Masahiro Yamada authored Mar 19, 2018
    
    
    In the context ...
    
        $(obj)/%.s: $(src)/%.c FORCE
                $(call if_changed_dep,cc_s_c)
    
        $(obj)/%.i: $(src)/%.c FORCE
                $(call if_changed_dep,cpp_i_c)
    
        $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE
                $(call cmd,force_checksrc)
                $(call if_changed_rule,cc_o_c)
    
        $(obj)/%.lst: $(src)/%.c FORCE
                $(call if_changed_dep,cc_lst_c)
    
    '$*' returns the stem of the target (the part of '%'), so $(obj)/ has
    already been ripped off.
    
    $(subst $(obj)/,,$*.o) is the same as $*.o
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Reviewed-by: default avatarCao jin <caoj.fnst@cn.fujitsu.com>
    8cd0e46d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7