Follow-up Comment #1, bug #59762 (project make): You target.mk contains rule
% :: $(DIR_TARGET) ; : When you run $ make file1.o make finds this rule, with % being file1.o and its prerequisite being build. Make then makes this prerequisite and then proceeds to execute the recipe to make file1.o from this prerequisite. In this rule this recipe is :. See that : printed after linking pgm.x? When you run $ make -t file1.o make finds this rule, with % being file1.o and its prerequisite being build. Make then makes this prerequisite (this is the first touch which creates file1.o in the build directory) and then proceeds to make file1.o. Because -t is specified make touches file1.o in the parent directory. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59762> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/