Description: Give the user the option to override the clmake options
Author: Baruch Even <baruch@debian.org>
Bug-Debian: http://bugs.debian.org/201677
--- a/clmake
+++ b/clmake
@@ -4,5 +4,9 @@
 # Jumps to the first gcc error that occurs during the build process.
 #
 
-make $* 2>&1 | colormake.pl `stty size` | less -r -pError
+SIZE=`/bin/stty size`
+if [ -z "${CLMAKE_OPTS}" ]; then
+	CLMAKE_OPTS='-r -pError'
+fi
+/usr/bin/make "$@" 2>&1 | /usr/share/colormake/colormake.pl $SIZE | /usr/bin/less ${CLMAKE_OPTS}
 exit ${PIPESTATUS[0]}
