]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: fix command_lex.h deps & gitignore
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 7 Dec 2016 16:34:38 +0000 (17:34 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 8 Dec 2016 11:23:17 +0000 (12:23 +0100)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/Makefile.am

index cf6c6cd1a7f8c3f6c335a35426c4651d3edd7775..ffbbacc8726fd9b5461aedad602602eda23c61d6 100644 (file)
@@ -6,6 +6,11 @@ AM_CFLAGS = $(WERROR)
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
 AM_YFLAGS = -d
 
+command_lex.h: command_lex.c
+       @if test ! -f $@; then rm -f command_lex.c; else :; fi
+       @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) command_lex.c; else :; fi
+command_parse.lo: command_lex.h
+
 lib_LTLIBRARIES = libzebra.la
 libzebra_la_LDFLAGS = -version-info 0:0:0 
 
@@ -25,7 +30,7 @@ libzebra_la_SOURCES = \
        strlcpy.c \
        strlcat.c
 
-BUILT_SOURCES = route_types.h gitversion.h command_parse.h
+BUILT_SOURCES = route_types.h gitversion.h command_parse.h command_lex.h
 
 libzebra_la_LIBADD = @LIBCAP@
 
@@ -49,6 +54,7 @@ noinst_HEADERS = \
 
 EXTRA_DIST = \
        queue.h \
+       command_lex.h \
        route_types.pl route_types.txt \
        gitversion.pl