From edc6a9e88d4679bbbd668de6a0d5f6cb059a8c56 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 10 Dec 2012 22:55:15 +0000 Subject: [PATCH] changed default install dir to /usr/local/bin, also check if dir exists and print a warning accordingly svn path=/trunk/; revision=10 --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a608ae8..d136b2f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,16 @@ CC = gcc CCFLAGS = -Wall -BINDIR = ~/.bin +BINDIR = /usr/local/bin + +${BINDIR}: + echo -e "\n\n====\n The specified executable directory (${BINDIR}) does not exist.\n Please adjust the BINDIR variable in the Makefile.\n Alternatively create the directory and make sure it is in the users executable path (\$$PATH)" + exit 1 anaglyph: anaglyph.c ${CC} ${CCFLAGS} -oanaglyph anaglyph.c -install: anaglyph stereofy.sh - cp anaglyph ${BINDIR} +install: ${BINDIR} anaglyph stereofy.sh + cp anaglyph ${BINDIR}/anaglyph cp stereofy.sh ${BINDIR}/stereofy clean: -- 2.39.2