Now uses the .PHONY directive correctly

This commit is contained in:
Kranklyboy 2018-07-23 22:59:04 -04:00
parent 18c9c94a3e
commit baa36d45d3

View File

@ -7,7 +7,9 @@
CC = gcc CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c 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 myexpand: myexpand.o
$(CC) -o $@ $^ $(CC) -o $@ $^
@ -15,11 +17,11 @@ myexpand: myexpand.o
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) $^ $(CC) $(CFLAGS) $^
.PHONY docs: Doxyfile myexpand.c docs: Doxyfile myexpand.c
doxygen Doxyfile doxygen Doxyfile
.PHONY docs_clean: docs_clean:
rm -rf html rm -rf html
.PHONY clean: clean:
rm -f myexpand.o myexpand rm -f myexpand.o myexpand