aboutsummaryrefslogtreecommitdiffstats
path: root/src/redo-ifcreate.c
blob: eba1c6bca5e5c95ccdb22cf61e95f3c58fecc526 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* redo-ifcreate.c
 *
 * Copyright (c) 2014 Tharre
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

#include <stddef.h>

#include "build.h"

int main(int argc, char *argv[]) {
	for (int i = 1; i < argc; ++i) {
		if (has_changed(argv[i], 'e', false))
			build_target(argv[i]);
		add_dep(argv[i], NULL, 'e');
	}
}