From 0ee4efb00202d399c213923a6134d32bef0cd9ea Mon Sep 17 00:00:00 2001 From: James Laird Date: Mon, 8 Apr 2013 18:52:57 +1000 Subject: [PATCH] Makefile: add install target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 0af4d7f4..ecc35346 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ endif -include config.mk +PREFIX ?= /usr/local + SRCS := shairport.c rtsp.c mdns.c common.c rtp.c player.c alac.c audio.c audio_dummy.c ifdef CONFIG_AO @@ -16,6 +18,9 @@ endif # default target all: shairport +install: shairport + install -m 755 shairport $(PREFIX)/bin/shairport + shairport: $(SRCS) $(CC) $(CFLAGS) $(SRCS) $(LDFLAGS) -o shairport