Makefile issue

Hi everyone!

I'm pretty new to makefiles and I've got an issue here: I like to clean up "make" but make reports an error:

make clean
rm -f ./simulation Makefile.bak
/bin/bash: rm: command not found
make: *** [clean] Error 127


The Makefile begins with:
SHELL := /bin/bash

and concludes with:

1
2
3
4
5
.PHONY: clean

clean:
        rm -f $(OBJS) $(OUT) Makefile.bak
        rm $(CLEANPATH)/*.* */


Why isn't it finding rm???

Thanks!
Last edited on
OK... SHELL := #!/bin/bash did the job!
Topic archived. No new replies allowed.