about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-21 11:14:38 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-21 11:16:20 -0700
commit357fb0a21fdfe6ff3af522a2463248e20b2fa8be (patch)
tree8fa9d17be69bf859df40755d821e1284b9c5a78e /GNUmakefile
parent6f3eb7a75d14d4b4af7ffa248bb2700e03575c10 (diff)
downloadunicorn-357fb0a21fdfe6ff3af522a2463248e20b2fa8be.tar.gz
I have a nice hook in git that complains when trailing
whitespace is present.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 032807d..3d3bde9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -32,6 +32,7 @@ inst_deps := $(wildcard bin/*) $(wildcard lib/*.rb) \
 
 ext/unicorn/http11/http11_parser.c: $(wildcard ext/unicorn/http11/*.rl)
         cd $(@D) && ragel http11_parser.rl -C -G2 -o $(@F)
+        $(ruby) -i -p -e '$$_.gsub!(%r{[ \t]*$$},"")' $@
 ext/unicorn/http11/Makefile: ext/unicorn/http11/extconf.rb $(http11_deps)
         cd $(@D) && $(ruby) $(<F)
 ext/unicorn/http11/http11.$(DLEXT): ext/unicorn/http11/Makefile