cd "$(dirname "$(realpath -- "$0")")"
redo-ifchange *.h libkeks.a keks.pc ../conf/prefix
read PREFIX <../conf/prefix
-mkdir -p $PREFIX/include/keks $PREFIX/lib
+mkdir -p $PREFIX/include/keks $PREFIX/lib $PREFIX/libdata/pkgconfig
cp -f *.h $PREFIX/include/keks
cp -f libkeks.a $PREFIX/lib
-chmod 644 $PREFIX/include/keks/*.h $PREFIX/lib/libkeks.a
+cp -f keks.pc $PREFIX/libdata/pkgconfig
+chmod 644 \
+ $PREFIX/include/keks/*.h \
+ $PREFIX/lib/libkeks.a \
+ $PREFIX/libdata/pkgconfig/keks.pc