]> rtime.felk.cvut.cz Git - omk.git/commit
Pass definition simplified by not using -local target
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Jan 2009 22:07:02 +0000 (23:07 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Jan 2009 22:07:02 +0000 (23:07 +0100)
commit24a427e634a228cdae2eecf8e49032bb93374d41
tree4a5f3fc10bea1521c2b2796884a54168caa061d7
parent74d9e9df5eddf45c91674a275e90d89b5a76e5b1
Pass definition simplified by not using -local target

Instead, pass  targets are declared as double-colon rules meaning that there
can be multiple definition of the pass target and all commands from these
definitions are concatenated and executed together.

The previous solution used dependencies as a way to specify multiple
commands to be executed. This leaded to higher memory consumption and
probably even to a problem with ordering of executed commands. Because
processing of both SUBDIRS and -local commands was implemented as
dependencies, in case of parallel make (-j) some commands in the current
directory could be executed before the commands from subdirectories. (Note
that this behavior was not observed. I only guess from manual that this
could happen.)
snippets/base
snippets/config_h
snippets/cprog
snippets/prepare