Open rolfschumacher opened 9 years ago
Hey, I had the same problem, but with the help of some great guys from stack overflow i managed to compile the file and make an executable which generates the .xml
The StackOverflow thread which contains some more info: https://stackoverflow.com/questions/51206691/error-on-unexpected-bracket-in-gawk/51210370#51210370
@rolfschumacher Indeed, Makefile is written for Windows/Cygwin users. At the time it was my development platform so Linux version was not provided.
Tried to do a make all under Linux, seems the Makefile was written for cygwin. In Makefile I commented out "# SHELL=C:/Windows/System32/cmd.exe" relying on the definition in the environment as SHELL=/bin/bash. Now I get rsc@rolf24:~/workspace/sbs2xml-conv$ make all flex lexer.l gawk "/#define YY_BUF_SIZE/{gsub(/16384/, "(10241024)")};{print}" lex.yy.c > lex.yy.c.new /bin/sh: 1: Syntax error: "(" unexpected Makefile:37: recipe for target 'flex' failed make: ** [flex] Error 2 rsc@rolf24:~/workspace/sbs2xml-conv$