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?


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -