X-Git-Url: http://git.plutz.net/?p=stereofy;a=blobdiff_plain;f=Makefile;h=93e877cb2d556b36c79854fd22a505c8a8ddaf09;hp=a608ae850f2716dedc852fb44cf1ad9f39d3ea2e;hb=dd9163bfcca6056bf4def621010c751b0e251cdc;hpb=749ec4ad5ec7d49addeaffec4241cabc3c6f2833 diff --git a/Makefile b/Makefile index a608ae8..93e877c 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,21 @@ CC = gcc -CCFLAGS = -Wall -BINDIR = ~/.bin +CCFLAGS = -Wall -O3 +BINDIR = /usr/local/bin + +all: anaglyph + +${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 + chmod a+x ${BINDIR}/anaglyph cp stereofy.sh ${BINDIR}/stereofy + chmod a+rx ${BINDIR}/stereofy clean: rm anaglyph