Skip to content
Snippets Groups Projects
  • Max Leonard Inden's avatar
    22066b47
    kube-prometheus/Makefile: Change target output from files to folder · 22066b47
    Max Leonard Inden authored
    Previously the `manifests` and `vendor` folder content has been build
    via `manifests/**` and `vendor/**` target definitions. This results in
    two issues:
    
    1. The GNU Make recipe is executed for every single file in the folders.
    
    2. Not all timestamps inside the `manifests` folder would be updated on
    every run, thereby needing to be rerun on all following target
    executions.
    
    Solution:
    
    1. Define the target based on the folder, not individual files
    
    2. Remove target folder before execution recipe to ensure all timestamps
    are updated.
    22066b47
    History
    kube-prometheus/Makefile: Change target output from files to folder
    Max Leonard Inden authored
    Previously the `manifests` and `vendor` folder content has been build
    via `manifests/**` and `vendor/**` target definitions. This results in
    two issues:
    
    1. The GNU Make recipe is executed for every single file in the folders.
    
    2. Not all timestamps inside the `manifests` folder would be updated on
    every run, thereby needing to be rerun on all following target
    executions.
    
    Solution:
    
    1. Define the target based on the folder, not individual files
    
    2. Remove target folder before execution recipe to ensure all timestamps
    are updated.