Re: Chain of pattern rule and non-terminal match-anything rule

2019-01-11 Thread Renaud Pacalet
On 10/01/2019 11:55, Renaud Pacalet wrote: > With the following Makefile: > > # Makefile > %.dat: aa > touch $@ > > %: > mkdir -p $@ > > invoking `make -d aa/bb.dat` produces: > ... > Must remake target 'aa/bb.dat'. > make: *** No rule to make target 'aa/bb.dat'. Stop. > ... > Do

Chain of pattern rule and non-terminal match-anything rule

2019-01-10 Thread Renaud Pacalet
With the following Makefile: # Makefile %.dat: aa touch $@ %: mkdir -p $@ invoking `make -d aa/bb.dat` produces: GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later