bin_PROGRAMS = libt2n-codegen
-EXTRA_DIST = clientlib.pc.in codegen.make
+pkgdata_DATA = clientlib.pc.in codegen.make
+
+# needed because we use old automake not supporting dist_ prefix
+
+EXTRA_DIST = $(pkgdata_DATA)
# todo: do we really want to install it
# (maybe it would be better to install a copy with each client lib?)