Commit 927f7c06 authored by fpottier's avatar fpottier
Browse files

Makefile update. Re-generated a few .expected files.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/menhir@337 0f8b5475-4b4e-0410-85a8-ee3154a6bfe7
parent 01234418
.PHONY: clean test expected
# Note that there is potential confusion between src/_stage1/menhir
# and src/_stage2/menhir. Here, we use the latter (built by "make
# bootstrap" in the src/ directory). But typing "make" in the src/
# directory re-builds only the former.
SHELL=/bin/bash
SRC=../../src
MENHIR=$(SRC)/menhir --stdlib $(SRC)
MENHIR=$(SRC)/_stage2/menhir.native --stdlib $(SRC)
# La convention de nommage des tests multi-grammaires
# est : /nom/-[1-9].mly
......@@ -15,7 +20,7 @@ test: clean $(RESULTS)
cat failed_files; \
fi
%.result: %.mly
%.result: %.mly
@ if echo $< | grep -e "-1.mly" &> /dev/null; then \
export BASE=`echo $< | sed s/"-1.mly"/""/`; \
export FILES=`echo $$BASE-[1-9].mly`; \
......@@ -65,5 +70,11 @@ expected:
@ CREATE_EXPECTED=1 $(MAKE) -s test
@ echo "Expected output re-generated."
# Use "make -B foo.expected" to force the reconstruction.
%.expected:
@ echo "Are you sure ? (this will erase $@) [Press ENTER]"
@ read
@ CREATE_EXPECTED=1 $(MAKE) $*.result
clean:
rm -f *.ml *.mli *.conflicts *.automaton *.cmi *.cmo *.cmx *.o *.s *.result *~ failed_files
File "inline-cycle-complex.mly", line 9, characters 8-9:
Error: there is a cycle in the definition of d.
File "inline-cycle-complex.mly", line 7, characters 8-9:
Error: there is a cycle in the definition of b.
File "inline-cycle.mly", line 6, characters 8-9:
Error: there is a cycle in the definition of c.
File "inline-cycle.mly", line 5, characters 8-9:
Error: there is a cycle in the definition of b.
File "lots-of-errors.mly", line 1, characters 0-1:
Syntax error inside a declaration.
File "lots-of-errors.mly", line 2, characters 0-20:
Syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
File "lots-of-errors.mly", line 4, characters 0-8:
Syntax error in a %token declaration.
Here are sample valid declarations:
%token DOT SEMICOLON
%token <string> LID UID
File "lots-of-errors.mly", line 4, characters 12-13:
Syntax error inside a declaration.
Did you perhaps forget the %% that separates declarations and rules?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment