diff --git a/tests/ansible/Makefile b/tests/ansible/Makefile index d9bdc521..00d6a8ab 100644 --- a/tests/ansible/Makefile +++ b/tests/ansible/Makefile @@ -1,10 +1,14 @@ -all: \ - lib/modules/custom_binary_producing_junk \ - lib/modules/custom_binary_producing_json +TARGETS+=lib/modules/custom_binary_producing_junk +TARGETS+=lib/modules/custom_binary_producing_json + +all: clean $(TARGETS) lib/modules/custom_binary_producing_junk: lib/modules.src/custom_binary_producing_junk.c $(CC) -o $@ $< lib/modules/custom_binary_producing_json: lib/modules.src/custom_binary_producing_json.c $(CC) -o $@ $< + +clean: + rm -f $(TARGETS)