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
|
$(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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user