Add .PHONY target for all and clean
This commit is contained in:
parent
c2c2e8581d
commit
b41bdbdddd
4
Makefile
4
Makefile
@ -7,6 +7,8 @@
|
||||
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 clean
|
||||
|
||||
all: websh
|
||||
|
||||
websh: websh.o
|
||||
@ -15,5 +17,5 @@ websh: websh.o
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) $^
|
||||
|
||||
.PHONY clean:
|
||||
clean:
|
||||
rm -f websh.o websh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user