From baa36d45d3cd0bc0eed1608e6ce980eceea230b9 Mon Sep 17 00:00:00 2001 From: Kranklyboy Date: Mon, 23 Jul 2018 22:59:04 -0400 Subject: [PATCH] Now uses the .PHONY directive correctly --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1d7a212..0d8b99c 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,9 @@ CC = gcc CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c -.PHONY all: myexpand +.PHONY: all clean docs docs_clean + +all: myexpand myexpand: myexpand.o $(CC) -o $@ $^ @@ -15,11 +17,11 @@ myexpand: myexpand.o %.o: %.c $(CC) $(CFLAGS) $^ -.PHONY docs: Doxyfile myexpand.c +docs: Doxyfile myexpand.c doxygen Doxyfile -.PHONY docs_clean: +docs_clean: rm -rf html -.PHONY clean: +clean: rm -f myexpand.o myexpand