Now uses the .PHONY directive correctly
This commit is contained in:
parent
18c9c94a3e
commit
baa36d45d3
10
Makefile
10
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user