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
You need to sign in or sign up before continuing.
  • linux
  • tools
  • lib
  • traceevent
  • Makefile
Find file BlameHistoryPermalink
  • Namhyung Kim's avatar
    tools lib traceevent: Make dependency files regeneratable · 860df583
    Namhyung Kim authored Jun 22, 2012
    
    
    Ingo reported that libtraceevent doesn't clean out dependency (.d) files
    and it can cause a build error when the libgcc package upgraded:
    
     comet:~/tip/tools/perf> make -j
         SUBDIR ../lib/traceevent/
     make[1]: *** No rule to make target `/usr/lib/gcc/x86_64-redhat-linux/4.7.0/include/stddef.h',
      needed by `event-parse.o'.  Stop.
     make: *** [../lib/traceevent//libtraceevent.a] Error 2
    
    So this patch makes the .d files depends on the source and header files
    also, so that it can be re-generated as needed.
    
    NOTE: This code is copied from the GNU make manual page
    (4.14 Generating Prerequisites Automatically).
    
    Reported-by: default avatarIngo Molnar <mingo@kernel.org>
    Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1340343462-15556-3-git-send-email-namhyung@kernel.org
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    860df583
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7