summaryrefslogtreecommitdiff
path: root/ext/date/prereq.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/prereq.mk')
-rw-r--r--ext/date/prereq.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/date/prereq.mk b/ext/date/prereq.mk
new file mode 100644
index 0000000..e9ee35a
--- /dev/null
+++ b/ext/date/prereq.mk
@@ -0,0 +1,8 @@
+.SUFFIXES: .list
+
+.list.h:
+ gperf -E -C -P -p -j1 -i 1 -g -o -t -N $(*F) $< \
+ | sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
+ > $(@F)
+
+zonetab.h: zonetab.list