I wrote a
makefile as given below:
.PHONY: clean_lib all a: lib make $@.exe c: lib make $@.exe clean_lib: rm -f lib all: a clean_lib c
When I call
make all I would like the "a" target to build a
a.exe and after that "clean" that
lib and then call "c". which would build again
lib for "c" and build
c.exe only builds if
lib builds. The problem is that after "clean" the
lib that I want to rebuild for "c" is not building, so
c.exe cannot build.
Can anyone can help me?