aboutsummaryrefslogtreecommitdiffstats
path: root/src/redo-ifchange.c
blob: 1efe0a5fde348bc04210111f6ba8b2d12c68b502 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <stdbool.h>

#include "build.h"
#include "dbg.h"

int main(int argc, char *argv[]) {
    int i;
    for (i = 1; i < argc; ++i) {
        /*debug("Testing if %s is up-to-date ...\n", argv[i]);*/
        if (has_changed(argv[i], 'c', false)) {
            /*printf("=> no\n");*/
            build_target(argv[i]);
        } else {
            /*printf("=> yes\n");*/
        }
        add_dep(argv[i], 'c');
    }
}