My makefile will not run for some reason. This code comes from one of my instructors on how to run a makefile for java programs. It's called Makefile
all:
javac cs286_p1/*.javac
jar cmf manifest.mf cs286_p1.jar cs286_p1
@echo "+ to run type: java -jar exampleProgram.jar"
@echo "+ to run with command line arguments, simply append them to the line above"
I've run cat -e -t -v Makefile
to see what the result was and it was this:
$ cat -e -t -v Makefile
all:^M$
^Ijavac cs286_p1/*.javac^M$
^Ijar cmf manifest.mf cs286_p1.jar cs286_p1^M$
^I@echo "+ to run type: java -jar exampleProgram.jar"^M$
^I@echo "+ to run with command line arguments, simply append them to the line above"^M$
Any help with this?
EDIT: It seems as as though dos2unix didn't work. I edited the file to take out the ~$. I'm editing and working on this in a linux environment that I'm currently connected to, I however started this on Notepad++ and made sure that ANSII was the encoding. Still not working, however, anything else that can be thought of?
^M
)? How did you edit the file and what did you do? – Zanna Mar 04 '19 at 08:22dos2unix
and what makes you think it didn’t work? – Melebius Mar 04 '19 at 13:23