/libs/parser/hconf.c
/libs/parser/lconf.c
/libs/parser/yconf.c
+/libs/parser/kconfig-parser.pc
/utils/kconfig-tweak
/utils/kconfig-gettext
CLEANFILES += libs/parser/hconf.c libs/parser/lconf.c libs/parser/yconf.c
EXTRA_DIST += libs/parser/yconf.y.patch
+# libs/parser/kconfig-parser.pc generated by AC_CONFIG_FILES in configure.ac
+pkgconfigdir = $(libdir)/pkg-config
+pkgconfig_DATA = libs/parser/kconfig-parser.pc
+CLEANFILES += libs/parser/kconfig-parser.pc
+EXTRA_DIST += libs/parser/kconfig-parser.pc.in
+
#--------------------------
# lxdialog lib (for mconf)
if COND_lxdialog
#----------------------------------------
# Finalise
+# All generated files are generated by a Makefile rule, except Makefile
+# itself of course.
+# There is no generic solution in automake to generate a file from its
+# .in source, so we'd have to provide custom, hand-made rules, which is
+# not nice. So, we handle libs/parser/kconfig-parser.pc here.
AC_CONFIG_FILES([
Makefile
+ libs/parser/kconfig-parser.pc
])
AC_OUTPUT
--- /dev/null
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=${prefix}/include
+
+Name: kconfig-parser
+Description: kconfig-parser library
+Requires:
+Version: @KCONFIGPARSER_LIB_VERSION@
+Libs: -L${libdir} -lkconfig-parser
+Cflags: -I${includedir}