build: move libgpiod.pc.in into lib/
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 19 Aug 2019 09:52:22 +0000 (11:52 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 19 Aug 2019 09:52:22 +0000 (11:52 +0200)
This file is specific to the core library. Move it into the lib/ source
directory.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Makefile.am
configure.ac
lib/Makefile.am
lib/libgpiod.pc.in [new file with mode: 0644]
libgpiod.pc.in [deleted file]

index 0f8c2b1aaeac1358dd5a07db2cb26e9b64635bae..d3f57b2d13b6209b11c424fcda0d238d2cb5b481 100644 (file)
@@ -40,6 +40,3 @@ clean-local:
 EXTRA_DIST = Doxyfile
 
 endif
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libgpiod.pc
index 1978eea6d65c3bc6a825cf4038bc6f7562afa030..41321c1b5ea154269b424419424daac3919f0262 100644 (file)
@@ -206,10 +206,10 @@ then
        AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically])
 fi
 
-AC_CONFIG_FILES([libgpiod.pc
-                Makefile
+AC_CONFIG_FILES([Makefile
                 include/Makefile
                 lib/Makefile
+                lib/libgpiod.pc
                 tools/Makefile
                 tests/Makefile
                 tests/mockup/Makefile
index 3f797c418c549da633542db8c83f79120ee1d7e5..e905d49701b474da980e16cdea7a760ca161c22e 100644 (file)
@@ -12,3 +12,6 @@ libgpiod_la_CFLAGS = -Wall -Wextra -g
 libgpiod_la_CFLAGS += -fvisibility=hidden -I$(top_srcdir)/include/
 libgpiod_la_CFLAGS += -include $(top_builddir)/config.h
 libgpiod_la_LDFLAGS = -version-info $(subst .,:,$(ABI_VERSION))
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libgpiod.pc
diff --git a/lib/libgpiod.pc.in b/lib/libgpiod.pc.in
new file mode 100644 (file)
index 0000000..48ff113
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libgpiod
+Description: Library and tools for the Linux GPIO chardev
+URL: @PACKAGE_URL@
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lgpiod
+Cflags: -I${includedir}
diff --git a/libgpiod.pc.in b/libgpiod.pc.in
deleted file mode 100644 (file)
index 48ff113..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
-
-Name: libgpiod
-Description: Library and tools for the Linux GPIO chardev
-URL: @PACKAGE_URL@
-Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -lgpiod
-Cflags: -I${includedir}