added cleanall and cleantxt to makefile
This commit is contained in:
parent
ee98de4701
commit
7981c8fdbb
7
makefile
7
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user