[Omake] Re: non-recursing targets
Sam Steingold
sds at gnu.org
Thu Oct 25 11:48:53 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jason Hickey wrote:
> A .PHONY target is inherited (recursing) only if it is declared before
> the .SUBDIRS. If you declare it after the .SUBDIRS, then it is not
> inherited. Here is an example OMakefile where each directory has a
> target "install-local" that is non-recursing, and there is a recursing
> target "install". (This example uses a .SUBDIRS body, but you can use
> separate OMakefiles if you like).
>
> # This target is recursing
> .PHONY: install
>
> .SUBDIRS: a b
> .PHONY: install-local
the manual (8.8) says that when .SUBDIRS has a body, the files
a/OMakefile and b/OMakefile are ignored.
when I added the above to the top-level OMakefile, subdirectories ceased
to be compilable.
Sam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHIOUUPp1Qsf2qnMcRAqbKAJ9w7P3YAmkt0hH9//3s9lUZSAcRtACfSJLU
AF2JortLET9//J8uBqi5HCY=
=fzGa
-----END PGP SIGNATURE-----
More information about the Omake
mailing list