added cleanall and cleantxt to makefile

This commit is contained in:
Mazar Farran 2015-08-26 20:19:17 -07:00
parent ee98de4701
commit 7981c8fdbb

View File

@ -16,8 +16,15 @@ page.o: page.c page.h line.h
$(CC) $(CFLAGS) -c page.c $(CC) $(CFLAGS) -c page.c
# '$<' expands to first prerequisite file # '$<' expands to first prerequisite file
# NOTE: this rule is already implicit
%.o: %.c %.h %.o: %.c %.h
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
.PHONY: cleanall clean cleantxt
cleanall: clean cleantxt
clean: clean:
rm -f $(OBJS) text rm -f $(OBJS) text
cleantxt:
rm -f *.txt