• Jiri Olsa's avatar
    perf tools: Fix bison OUTPUT directories dependency · da237ed0
    Jiri Olsa authored
    
    
    The bison and flex C objects don't have dependency for creating output
    directories.
    
    This could lead to build failure if the one of those objects is picked
    up by make to be build as the first one (reported by Arnaldo).
    
    Also following make fails:
      $ rm -rf /tmp/krava; mkdir /tmp/krava; make O=/tmp/krava util/pmu-bison.o
      BUILD:   Doing 'make -j4' parallel build
      [ SNIP ]
      BISON    /tmp/krava/util/pmu-bison.c
      FLAGS:   * new build flags or prefix
    bison: /tmp/krava/util/pmu-bison.output: cannot open: No such file or directory
    make[1]: *** [/tmp/krava/util/pmu-bison.c] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make: *** [util/pmu-bison.o] Error 2
    
    Adding bison objects dependency for output directories (flex objects
    depends on bisons').
    
    This fixies the make_util_pmu_bison_o_O make test.
    Reported-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/1392805300-14610-3-git-send-email-jolsa@redhat.com
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    da237ed0
Makefile.perf 30.4 KB