Changes between Version 2 and Version 3 of Building/Architecture/Idiom/Directories


Ignore:
Timestamp:
Oct 5, 2009 11:14:01 PM (5 years ago)
Author:
igloo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building/Architecture/Idiom/Directories

    v2 v3  
    88    gcc $< -o $@ 
    99}}} 
    10 Dependencies after the `|` are order-only, i.e. we only require that the directory exists, not that `build/foo.o` is newer than it. The doubled-dollars are because this needs to happen during the second-expansion phase, as $@ is not available during the first-expansion. 
     10Dependencies after the `|` are order-only, i.e. we only require that the directory exists, not that `build/foo.o` is newer than it. The doubled-dollars are because this needs to happen during the second-expansion phase, as $@ is not available during the first-expansion. The `/.` on the end is because make will normalise `foo/bar/` to `foo/bar`, so we couldn't use a `%/` rule to create the directories. We therefore use a `%/.` rule.