Re: Is it possible to extend the built-in dependency tracking?
Tomas Volf <[email protected]> Sat, 02 Aug 2025 11:46:00 +0200
| Newsgroups | gmane.comp.sysutils.automake.general |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jacob Bachmeyer <[email protected]> writes: > You seem to be recording the names tried during a path search instead of = the > files that actually exist.=C2=A0 That will not work because make requires= every > listed dependency of a target to exist. Yes, that is exactly what I am doing, based on the following quote from (automake-history)Recommendations for Tool Writers: =2D-8<---------------cut here---------------start------------->8--- Finally, the tool should generate a dependency for each probe, instead of each successful file open, in order to avoid the duplicated new header bug. =2D-8<---------------cut here---------------end--------------->8--- I probably misunderstood it. I will re-read the chapter 2 and try again. > A crazy option occurs to me, but I think it only works in GNU make:=C2=A0= $(wildcard > ...) effectively filters a list of files to only those that actually exis= t. I am still at least trying to stick to POSIX make, but will keep this as an option, thank you. :) > [..] > > Just my guesses towards a solution, Thank you, it is much appreciated. ^_^ Tomas =2D-=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmiN3lgOHH5Ad29sZnNk ZW4uY3oACgkQL7/ufbZ/wakWUw//dupEKNCrm/OylkMTsJAJeDyvs8X+agS7uLxh L5KyseldTGKlIq714vDbLUJ6aJLGwEHRZGa6E6oIv/Rtc/M3hlWc06y+ilRk7pvm I/SnBSRMjGnGHcR2H+nbv/OgDCaSiYjazAqrTPD1jdYt171gh56SmUVU4Zq9hA5w BWqo7pMDpD9LJm3c2p1lWbhuRDHnDpxm22sHqbBCmJ4toODjSTC+9gkQwRhJd4X6 NkurAIwNoctXhXCJGG3/25BGp/N5RWwfoMhbVRQ6IptYkCrKUvkQ4lTyTTVW3K3I gvB/KoXvKsnFUFJAOf4DgNIsR445Nx5aS9W4RBHCfaXTOoEj9+ys4lm3v08RD7GA jQvwHQl24VA/gGty7qK4NQETGPfqbwviAHX/B0/cpexRua9+EMMUEVJoJPkfwhKH tH/8O2wl2SPajcP3I/1DLVr/+hf301gm4Lvss6j+yxOk+qL/0hqpQZvt3pxTvIlU ey6VmCkFrgQTF7mKxp6HugI4+KI9QQFguHXvVfaubPQ6cRegXthk8YG2xWpcm76P 9NYysoK0sSjft+KG4wbI9KU2IQeMIES0u4DkPf+ULAfsKzQj9uB0WzdhwXOFv3Dn o2L9V/Dkecqy7c4J0vQ/NeNoDtBcqU/dgMMkjHCsRXyN8oWoSDyMNwWgCAUOYNZX KiAf6dg= =ew6G -----END PGP SIGNATURE----- --=-=-=--