From bb807218467b8a157b8b672e130ae8769a508b02 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 2 Apr 2013 22:11:24 +0200 Subject: [PATCH 1/2] add default target w/ name 'all' --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index bb007670..7fe071be 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,9 @@ ifdef CONFIG_AO SRCS += audio_ao.c endif +# default target +all: shairport + shairport: $(SRCS) $(CC) $(CFLAGS) $(SRCS) $(LDFLAGS) -o shairport From 6e04651392a29dafbaf5e730e3925162a420e5f1 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 2 Apr 2013 22:11:56 +0200 Subject: [PATCH 2/2] don't fail clean target, when binary does not exist --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7fe071be..0af4d7f4 100644 --- a/Makefile +++ b/Makefile @@ -20,4 +20,4 @@ shairport: $(SRCS) $(CC) $(CFLAGS) $(SRCS) $(LDFLAGS) -o shairport clean: - rm shairport + rm -f shairport