How can I force Make to execute a recipe all the time
The current Makefile has something like this: target1 : lib1.a lib2.a target2 : lib1.a lib3.a target3 : lib3.a lib1.a: $(MAKE) -C sub_dir all I want to change this Makefile so that wherever a target depends on lib1.a , it always run the command " $(MAKE) -C sub_dir all ", always. Another words, in the above example, target1 and target2 will always run " $(MAKE) -C sub_dir all ". Is there any way I can do that? I know the following does not work: target1 : lib2.a $(MAKE) -C sub_dir all target2 : lib3.a $(MAKE) -C sub_dir all target3 : lib3.a Because if lib2.a has no update, the the command does