build: Fix construction of parser.mli
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 3 Jan 2020 19:23:50 +0000 (19:23 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 3 Jan 2020 19:23:50 +0000 (19:23 +0000)
Goalfile.in

index 0990d6a..8fd899b 100644 (file)
@@ -64,6 +64,9 @@ goal maintainer-clean = : clean {
 
 "src/parser.mli", "src/parser.ml" : "src/parser.mly" {
     %MENHIR --explain %<
+    # Hack required to get includes working.
+    echo 'val lexer_read : (Lexing.lexbuf -> token) option ref' \
+        >> src/parser.mli
 }
 
 "src/lexer.ml" : "src/lexer.mll" {