From b587ea88f62a207a18b6efa56025bc307e06d5ae Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 5 Jul 2023 16:49:03 -0400 Subject: Add a "clean" target to the Makefiles --- Makefile | 6 +++++- copy_experiments/Makefile | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7eaf03d..16e17dd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all copy_experiments +.PHONY: all copy_experiments clean all: constant_cycles_kernel copy_experiments @@ -7,3 +7,7 @@ constant_cycles_kernel: constant_cycles_kernel.cu testbench.h copy_experiments: $(MAKE) -C $@ + +clean: + rm -f constant_cycles_kernel + $(MAKE) -C copy_experiments clean diff --git a/copy_experiments/Makefile b/copy_experiments/Makefile index 6ccec54..b2d55c2 100644 --- a/copy_experiments/Makefile +++ b/copy_experiments/Makefile @@ -1,4 +1,4 @@ -.PHONY: all +.PHONY: all clean all: copy_contender mon_cross_ctx_copies @@ -8,3 +8,5 @@ copy_contender: copy_contender.cu copy_testbench.h ../testbench.h mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h /usr/local/cuda/bin/nvcc mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g +clean: + rm -f copy_contender mon_cross_ctx_copies -- cgit v1.2.2