summaryrefslogtreecommitdiff
path: root/ext/socket/depend
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/depend')
-rw-r--r--ext/socket/depend8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/socket/depend b/ext/socket/depend
index cca6d4e62a8..eab099b0c09 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,3 +1,9 @@
-socket.o : socket.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/rubyio.h $(hdrdir)/rubysig.h sockport.h
+DISTCLEANFILES = $(srcdir)/constants.h
+
+socket.o: socket.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/rubyio.h $(hdrdir)/rubysig.h sockport.h constants.h
getnameinfo.o: getnameinfo.c $(topdir)/config.h addrinfo.h sockport.h
getaddrinfo.o: getaddrinfo.c $(topdir)/config.h addrinfo.h sockport.h
+
+constants.h: $(srcdir)/mkconstants.rb
+ @echo "generating constants.h"
+ @$(RUBY) $(srcdir)/mkconstants.rb > $@