From 7981c8fdbbf3ac05a6408ee7e9cb5bd6b359cace Mon Sep 17 00:00:00 2001 From: Mazar Farran Date: Wed, 26 Aug 2015 20:19:17 -0700 Subject: [PATCH] added cleanall and cleantxt to makefile --- makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index cb9b6fb..6486fa6 100644 --- a/makefile +++ b/makefile @@ -16,8 +16,15 @@ page.o: page.c page.h line.h $(CC) $(CFLAGS) -c page.c # '$<' expands to first prerequisite file +# NOTE: this rule is already implicit %.o: %.c %.h $(CC) $(CFLAGS) -c $< -o $@ - + +.PHONY: cleanall clean cleantxt +cleanall: clean cleantxt + clean: rm -f $(OBJS) text + +cleantxt: + rm -f *.txt