$(pkgdatadir$) apparently expands exactly the same way as $(pkgdatadir),
at least under GNU make, but it's obviously wrong.
CLEANFILES += lib/dirs.c
lib/dirs.c: Makefile
($(ro_c) && \
- echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir$)";' && \
+ echo 'const char ovs_pkgdatadir[] = "$(pkgdatadir)";' && \
echo 'const char ovs_rundir[] = "@RUNDIR@";' && \
echo 'const char ovs_logdir[] = "@LOGDIR@";') > lib/dirs.c.tmp
mv lib/dirs.c.tmp lib/dirs.c