about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-08-02 13:39:21 -0700
committerEric Wong <normalperson@yhbt.net>2009-08-09 01:24:30 -0700
commitca3fd8acb4bc3f5125a9f0f281951fb8f03778e5 (patch)
tree42752ea26cf989d9a8d02d750a87aff0d15dc1d8 /GNUmakefile
parente1d67bef994587ba77e1a3575773755b2b5e1558 (diff)
downloadunicorn-ca3fd8acb4bc3f5125a9f0f281951fb8f03778e5.tar.gz
More tightly integrate the C/Ruby portions with C/Ragel to avoid
the confusing the flow.  Split out some files into hopefully
logical areas so it's easier to focus on more
interesting/volatile code.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 233fdb4..10158cf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,13 +28,13 @@ T_r_log := $(subst .r,$(log_suffix),$(T_r))
 test_prefix = $(CURDIR)/test/install-$(RUBY_VERSION)
 
 ext := ext/unicorn_http
-c_files := $(addprefix $(ext)/,ext_help.h unicorn_http.c unicorn_http.h)
+c_files := $(ext)/unicorn_http.c $(wildcard $(ext)/*.h)
 rl_files := $(addprefix $(ext)/,unicorn_http.rl unicorn_http_common.rl)
 rb_files := $(shell grep '^\(bin\|lib\)' Manifest)
 inst_deps := $(c_files) $(rb_files)
 
-ragel: $(ext)/unicorn_http.h
-$(ext)/unicorn_http.h: $(rl_files)
+ragel: $(ext)/unicorn_http.c
+$(ext)/unicorn_http.c: $(rl_files)
         cd $(@D) && $(ragel) unicorn_http.rl -C $(RLFLAGS) -o $(@F)
         $(ruby) -i -p -e '$$_.gsub!(%r{[ \t]*$$},"")' $@
 $(ext)/Makefile: $(ext)/extconf.rb $(c_files)
@@ -124,7 +124,7 @@ clean:
         $(RM) -r $(test_prefix)
 
 Manifest:
-        (git ls-files && echo $(ext)/unicorn_http.h) | LC_ALL=C sort > $@+
+        (git ls-files && echo $(ext)/unicorn_http.c) | LC_ALL=C sort > $@+
         cmp $@+ $@ || mv $@+ $@
         $(RM) -f $@+