configdir = $(datadir)/bbtools
CLEANFILES = bbtoolsrc

config_DATA = bbtoolsrc.in \
		bbapm.conf \
		bbapm.style \
		bbapm.nobb \
		README.bbapm

EXTRA_DIST = $(config_DATA)

all-local: bbtoolsrc

bbtoolsrc: bbtoolsrc.in
	@regex_cmd@ -e "s,@configdir@,$(configdir)," bbtoolsrc.in > bbtoolsrc


syntax highlighted by Code2HTML, v. 0.9.1