From 3657db0222bd9bca8691c05d3308387d2da65b66 Mon Sep 17 00:00:00 2001 From: Sam Lidder Date: Sat, 18 Aug 2012 17:01:33 -0400 Subject: [PATCH] add clean target to Makefile for convenience - distclean removes backup source file received from TC Arena applet --- src/com/dogcows/resources/C++Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/com/dogcows/resources/C++Makefile b/src/com/dogcows/resources/C++Makefile index e864df3..83798d4 100644 --- a/src/com/dogcows/resources/C++Makefile +++ b/src/com/dogcows/resources/C++Makefile @@ -15,5 +15,11 @@ driver.o: $CLASSNAME$.o driver: driver.o $(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS) $(LDLIBS) -.PHONY: all run test +clean: + rm -f $CLASSNAME$.o driver.o driver + +distclean: clean + rm -f $CLASSNAME$ + +.PHONY: all run test clean distclean -- 2.45.2