Skip to content
Snippets Groups Projects
  • Ludwig Knüpfer's avatar
    182b603a
    make: 1571 fixup: dont create existing directories · 182b603a
    Ludwig Knüpfer authored
    This fixes an error which was introduced by commit
    346313bf
    
    The timestamp of directories is updated when a file inside a directory
    is changed.
    Therefore, make decides a target needs to be rebuilt, whenever that
    target depends on its parent directory, because the directory is
    always newer than the file inside.
    
    http://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/Prerequisite-Types.html
    
        Occasionally, however, you have a situation where you want to
        impose a specific ordering on the rules to be invoked without
        forcing the target to be updated if one of those rules is
        executed. In that case, you want to define order-only
        prerequisites. Order-only prerequisites can be specified by
        placing a pipe symbol (|) in the prerequisites list: any
        prerequisites to the left of the pipe symbol are normal; any
        prerequisites to the right are order-only:
    
             targets : normal-prerequisites | order-only-prerequisites
    182b603a
    History
    make: 1571 fixup: dont create existing directories
    Ludwig Knüpfer authored
    This fixes an error which was introduced by commit
    346313bf
    
    The timestamp of directories is updated when a file inside a directory
    is changed.
    Therefore, make decides a target needs to be rebuilt, whenever that
    target depends on its parent directory, because the directory is
    always newer than the file inside.
    
    http://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/Prerequisite-Types.html
    
        Occasionally, however, you have a situation where you want to
        impose a specific ordering on the rules to be invoked without
        forcing the target to be updated if one of those rules is
        executed. In that case, you want to define order-only
        prerequisites. Order-only prerequisites can be specified by
        placing a pipe symbol (|) in the prerequisites list: any
        prerequisites to the left of the pipe symbol are normal; any
        prerequisites to the right are order-only:
    
             targets : normal-prerequisites | order-only-prerequisites