On 11/17/2015 22:13, NightStrike wrote: > This is a bad change. Make should be managing dependencies. It's bad > form to force a call to mkdir for every iteration, when it only needs > to be called once (especially on msys/cygwin, where that extra call is > non-trivial.) The correct way to do it is to set the destination > directory as a dependency, to make a rule for that, and then go ahead > with the normal rules. Something like this: > > $(directoryname): > $(MKDIR_P) $@ > > %.def: $(directoryname) > > %.def: %.def.in > ...as before > > > You could probably even combine those two rules: > > %def: %.def.in $(directoryname) > ...as before >
As in literally "directoryname"? I tried $(@D), but end up with "/" as directory name.
0xD4EBC740.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
