From b41bdbdddd0fc53f738a76ced8d199f157bf960a Mon Sep 17 00:00:00 2001 From: Tobias Eidelpes Date: Tue, 8 May 2018 18:22:49 +0200 Subject: [PATCH] Add .PHONY target for all and clean --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b888635..2629725 100644 --- a/Makefile +++ b/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