From ccf791eee2f939fcf06922b1440edb092833be96 Mon Sep 17 00:00:00 2001 From: Pedro Flemming Date: Thu, 6 Apr 2017 17:02:40 +0200 Subject: [PATCH] change make dependendencies for parser so parser rebuild is not invoked on make: Nothing to be done for 'library'. --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index bab6e21..8504f8c 100644 --- a/Makefile +++ b/Makefile @@ -27,15 +27,17 @@ library: $(TARGET) $(TARGET): $(LIBOBJ) $(CXX) $(LIBFLAGS) -o $(TARGET) $(LIBOBJ) - %.o: %.cpp $(PARSERFILES) $(CXX) $(CFLAGS) -c -o $@ $< -$(SRCPARSER)/bison_parser.cpp: parser -$(SRCPARSER)/flex_lexer.cpp: parser +$(SRCPARSER)/bison_parser.cpp: + make -C $(SRCPARSER)/ bison_parser.cpp + +$(SRCPARSER)/flex_lexer.cpp: + make -C $(SRCPARSER)/ flex_lexer.cpp parser: - make -C $(SRCPARSER)/ + make -C $(SRCPARSER) all clean: rm -f $(TARGET) @@ -52,7 +54,6 @@ install: cp -r src $(INSTALL)/include/hsql find $(INSTALL)/include/hsql -not -name '*.h' -type f | xargs rm - format: astyle --options=astyle.options $(ALLLIB) astyle --options=astyle.options $(ALLTEST)