summaryrefslogtreecommitdiff
path: root/ext/io/console/depend
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-06 21:54:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-06 21:54:07 +0000
commit81c83f55e72bb16ba992dce61b90b9f4b46d2993 (patch)
treed90adffb1e46936199ac1cef5aaee2f1583727cd /ext/io/console/depend
parentfe6c545d4381267cb168ea8d0a19d7cbc47cda52 (diff)
io/console: win32_vk dependencies
* ext/io/console/depend: check if VK table is modified by the checksum. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/depend')
-rw-r--r--ext/io/console/depend13
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/io/console/depend b/ext/io/console/depend
index c961843bcc9..1e485fd1949 100644
--- a/ext/io/console/depend
+++ b/ext/io/console/depend
@@ -1,3 +1,5 @@
+WIN32_VK_HEADER = {$(srcdir)}win32_vk.chksum
+
$(OBJS): $(HDRS) $(ruby_headers) \
$(VK_HEADER) \
$(hdrdir)/ruby/io.h \
@@ -6,5 +8,12 @@ $(OBJS): $(HDRS) $(ruby_headers) \
win32_vk.h: win32_vk.list
-.list.h:
- gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* --output-file=$@ $<
+{$(srcdir)}.list.h:
+ gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* --output-file=$(@F) $<
+
+.SUFFIXES: .chksum .list
+
+{$(srcdir)}.list.chksum:
+ @$(RUBY) -I$(top_srcdir)/tool -rchecksum \
+ -e "Checksum.update(ARGV) {|k,f|k.copy(f) rescue k.make(f)}" \
+ -- --make=$(MAKE) -I$(srcdir) $(<F) $(@F:.chksum=.h)