From 1949b0d734c1ea0a3559d6d254800e046eb27ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Andr=C3=A9n=20Zachrisson?= Date: Fri, 30 Oct 2015 22:14:08 +0100 Subject: [PATCH] Add install target --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8e13d28..720d46c 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,24 @@ SRC = cue2pops.c CC = gcc -CFLAGS = -Wall +CFLAGS = -Wall -Wextra TARGET = cue2pops +INSTALL_DIR = /usr/local/bin + RM = rm -all: cue2pops +CP = cp cue2pops: $(CC) $(CFLAGS) $(SRC) -o $(TARGET) +all: cue2pops + +install: + $(CP) $(TARGET) $(INSTALL_DIR) + clean: $(RM) $(TARGET) +