From ce058eb8bdde58a1209672e1c6177174d1ecc919 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 12 Aug 2018 13:17:31 +0100 Subject: [PATCH] Add 'clean' target to makefile. --- tests/ansible/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)