bash - No rule to make target Makefile error in shell script? -
i new shell script. tried run makefile using shell script. giving me error vedant@z510:~/workspace$ sh test.sh make: makefile: no such file or directory make: *** no rule make target 'makefile'. stop. my makefile src=src #obj=obj flags= -g3 -msse3 -g source= $(src)/main.c \ $(src)/sgp_conv.c\ $(src)/sgp_math.c\ $(src)/magneticfield.c\ $(src)/sgp4.c\ $(src)/dynamics2.c\ $(src)/preisach2.c \ $(src)/atmospheric_torque.c\ $(src)/initialize.c \ $(src)/ptangle.c\ $(src)/effectmagnet.c\ $(src)/print.c\ $(src)/solarradiation_torque.c object = $(source:.c=.o) sim: $(object) gcc -wall -o demo $(flags) $(object) -lm $(object) : %.o : %.c makefile gcc $(flags) -c $< -o $@ clean: rm $(src)/*.o and shell script trying execute alias proj="cd /home/vedant/version/version14.9_latest" make -b please can tell me wrong?