]> git.plutz.net Git - stereofy/commitdiff
changed default install dir to /usr/local/bin, also check if dir exists and print...
authorpaul <paul@plutz.net>
Mon, 10 Dec 2012 22:55:15 +0000 (22:55 +0000)
committerpaul <paul@plutz.net>
Mon, 10 Dec 2012 22:55:15 +0000 (22:55 +0000)
svn path=/trunk/; revision=10

Makefile

index a608ae850f2716dedc852fb44cf1ad9f39d3ea2e..d136b2f84fa258347475b2c6030dad9f0f72f671 100644 (file)
--- 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: