From b1b2c039be725ffb6e6471a7cbb811940f175260 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sat, 16 Mar 2013 12:55:17 -0400 Subject: [PATCH] Add install target. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 89a376b..45916a1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CC = gcc CFLAGS = -W -Wall -pedantic -ansi -std=c99 -g LDFLAGS = -lncursesw +PREFIX = /usr/local EXECUTABLE = ttysolitaire SRC_DIR = src @@ -29,6 +30,8 @@ TESTS_OBJECTS = ${TESTS_DIR}/frame_test.o \ ${TESTS_DIR}/test_helper.o \ ${TESTS_DIR}/test_helper_test.o \ +.PHONY: test clean + ttysolitaire: ${SRC_OBJECTS} ${CC} ${CFLAGS} ${SRC} -o ${EXECUTABLE} ${SRC_OBJECTS} ${LDFLAGS} @@ -38,3 +41,6 @@ test: ${SRC_OBJECTS} ${TESTS_OBJECTS} clean: rm -rf {${SRC_DIR},${TESTS_DIR}}/*.o ${EXECUTABLE} ${TESTS_EXECUTABLE} + +install: + cp -pf ${EXECUTABLE} ${PREFIX}/bin