Makefile.am: Include a pkgconfig file.
[sod] / Makefile.am
index e1b1bbf..421bf26 100644 (file)
@@ -28,6 +28,17 @@ include      $(top_srcdir)/vars.am
 SUBDIRS                         =
 
 ###--------------------------------------------------------------------------
+### Package-configuration file.
+
+pkgconfigdir            = $(libdir)/pkgconfig
+pkgconfig_DATA          = sod.pc
+CLEANFILES             += sod.pc
+EXTRA_DIST             += sod.pc.in
+
+sod.pc: sod.pc.in Makefile
+       $(SUBST) $(srcdir)/sod.pc.in >$@.new $(SUBSTITUTIONS) && mv $@.new $@
+
+###--------------------------------------------------------------------------
 ### Subdirectories to build
 
 ## The SOD translator.