[Omake] non-recursing targets
Jason Hickey
jyh at cs.caltech.edu
Mon Oct 22 11:04:02 PDT 2007
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
install-local:
echo $(absname $(CWD))
install: install-local
# This target is non-recursing
.PHONY: install-local
install-local:
echo $(absname $(CWD))
# Connect the two
install: install-local
Jason
On Oct 22, 2007, at 9:08 AM, Sam Steingold wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> is it possible to mark a target as non-recursing?
> e.g., I want "omake install" not to recurse in subdirectories, but
> only
> install whatever I have in the current directory.
> thanks.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHHMsLPp1Qsf2qnMcRAkTUAJ9hAn8oiIViYvwh3RA1MyYkhonXxQCfUJMk
> rzDIX9YnKk7QcP7GCLa2ScA=
> =6T4L
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list