Changeset 1929


Ignore:
Timestamp:
Sep 20, 2012, 12:24:02 AM (7 years ago)
Author:
sam
Message:

build: abort make process if a flex or bison run fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/autotools/common.am

    r1925 r1929  
    2929            b="`basename $$scanner`"; \
    3030            echo flex -o "generated/$$b-scanner.cpp" "$$scanner-scanner.l"; \
    31             flex -o "generated/$$b-scanner.cpp" "$$scanner-scanner.l"; \
     31            flex -o "generated/$$b-scanner.cpp" "$$scanner-scanner.l" || exit 1; \
    3232          done; \
    3333          for parser in $(patsubst %-parser.y, %, $(filter %-parser.y, $(EXTRA_DIST))); do \
    3434            b="`basename $$parser`"; \
    3535            echo bison -o "generated/$$b-parser.cpp" --defines="generated/$$b-parser.h" -d -b "generated/$$b" "$$parser-parser.y"; \
    36             bison -o "generated/$$b-parser.cpp" --defines="generated/$$b-parser.h" -d -b "generated/$$b" "$$parser-parser.y"; \
     36            bison -o "generated/$$b-parser.cpp" --defines="generated/$$b-parser.h" -d -b "generated/$$b" "$$parser-parser.y" || exit 1; \
    3737          done; \
    3838        fi
Note: See TracChangeset for help on using the changeset viewer.