summaryrefslogtreecommitdiff
path: root/ext/date/prereq.mk
blob: e9ee35adc637b408c28bbb7cf9ccd73a981dc3d9 (plain)
1
2
3
4
5
6
7
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