summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-03-16 14:14:01 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-11-03 12:23:02 +0100
commit7083e7dbc505ee8ee2ceb2280e46869466396688 (patch)
treefe636c60a801d219100c75c1235882d732a9bf2b
parent8050a28beb37d1e90d6cc5d542b6eac6a222a17a (diff)
downloadkmscon-7083e7dbc505ee8ee2ceb2280e46869466396688.tar.gz
kmscon-7083e7dbc505ee8ee2ceb2280e46869466396688.tar.bz2
kmscon-7083e7dbc505ee8ee2ceb2280e46869466396688.zip
build: strip \r from shaders
\r is rarely used and probably always escaped in strings so we can safely erase it together with \n to reduce its size. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 5478d0c..f82e0a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -155,12 +155,12 @@ src/%.bin.lo: src/%.bin
# ^/*.*$ Start of multi-line comment
# ^ *.*$ Multi-line comment body
# ^[ \t]* Indentation whitespace
-# \n Newlines
+# [\r\n] Newlines
#
CLEANFILES += src/*.vert.bin src/*.frag.bin
SHADER_SED = -e 's/^\/\*.*$$//' -e 's/^ \*.*$$//' -e 's/^[ \t]*//'
-SHADER_TR = -d "\n"
+SHADER_TR = -d "\r\n"
src/%.vert.bin: $(top_srcdir)/src/%.vert
$(AM_V_at)$(SED) $(SHADER_SED) "$<" | tr $(SHADER_TR) >"$@"