I have a problem with a makefile that I am trying to run. I have to use this exact file and syntax because it is mandatory for homework. I think my problem occured because I needed to download the text from website on windows and then transfer it to remote server with linux so it changed the structure and perhaps some characters. If someone can help me fix the file structure without change the commands it will be very appreciated. this is the makefile:
all: clean
flex scanner.lex
bison -d parser.ypp
g++ -std=c++11 -o hw3 *.c *.cpp
clean:
rm -f lex.yy.c
rm -f parser.tab.*pp
rm -f hw3
.PHONY: all clean
Please notice that I used tab at the beginning of lines and not space.