Fix: standardize parser/lexer building
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 2 Apr 2016 20:14:17 +0000 (16:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 15 May 2016 17:13:31 +0000 (13:13 -0400)
commitefeff612ce20a1b6810514f7025ca1c062409248
tree8828e964951d19af3de3ff8ed1b60cad61f14a08
parenta57ccd3615c8cdb258c4d8252c315b0b786b5b27
Fix: standardize parser/lexer building

This patch makes the build system act as follows:

    if in Git repo:
        require bison/flex (configure)
        build parser/lexer (make, make clean)
    else:
        if bison exists:
            build parser (make, make clean)
        else:
            warn that bison is missing (configure)
            create "error" parser target in Makefile (make)
            do not clean parser (make clean not available)

        if flex exists:
            build lexer (make, make clean)
        else:
            warn that flex is missing (configure)
            create "error" lexer target in Makefile (make)
            do not clean lexer (make clean not available)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
src/lib/lttng-ctl/filter/Makefile.am
This page took 0.025613 seconds and 4 git commands to generate.