[build] separate dictionary builder from make.py