pattern rules with multiple targets producing intermediate files

2023-02-07 Thread Jan Beulich
Hello, while something has changed from 4.3 to 4.4 in the dealing with intermediate files, the example Makefile below still doesn't work as expected. There are two pairs of *.[ch] files generated, each by their respective rule. Each of the *.o files to be compiled from the *.c ones has a dependenc

Generating missing depfiles by an automake based makefile

2023-02-07 Thread Dmitry Goncharov
Good morning. Here is a rule from an automake generated makefile. $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ This rule restores a missing depfile file by creating a file with one line '# dummy'. (Next version of automake will create an empty one)