I am using a make file to build my java project.
The code in my makefile is:
INSTALLPATH=/usr/bin
all:
@echo "Compiling all source files to bin/"
@ant
clean:
@echo "Cleaning all targets"
@ant clean
install:
if (! test -e dist/jar.jar ) then
@make all
fi
@echo "Installing in ${INSTALLPATH}"
cp dist/*.jar ${INSTALLPATH}
and when i run make install I get this error:
if (! test -e dist/jar.jar ) then
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [install] Error 2
What am I doing wrong?