From d61664dee3b3aa0198c3182dbfc638f2b4e609ca Mon Sep 17 00:00:00 2001 From: Hans Zandbelt Date: Fri, 21 Jun 2024 08:14:49 +0200 Subject: [PATCH] Makefile.am: use pkglib_LTLIBRARIES Signed-off-by: Hans Zandbelt --- ChangeLog | 3 +++ Makefile.am | 10 ++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index b15a72d..719af8f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +06/21/2024 +- Makefile.am: use pkglib_LTLIBRARIES + 06/05/2024 - depend on liboauth2 >= 1.6.2 - release 3.5.0 diff --git a/Makefile.am b/Makefile.am index 7315047..f671f7d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,8 @@ includesubdir = $(includedir)/oauth2 includesub_HEADERS = \ src/liboauth2-sts/include/oauth2/sts.h -lib_LTLIBRARIES = @PACKAGE_NAME@.la +pkglib_LTLIBRARIES = @PACKAGE_NAME@.la +pkglibdir = $(libdir)/nginx/modules @PACKAGE_NAME@_la_CFLAGS = @OAUTH2_CFLAGS@ @OAUTH2_NGINX_CFLAGS@ @NGINX_CFLAGS@ @XML_CFLAGS@ -I${srcdir}/src/liboauth2-sts/include @PACKAGE_NAME@_la_LIBADD = @OAUTH2_LIBS@ @OAUTH2_NGINX_LIBS@ @NGINX_LIBS@ @XML_LIBS@ @@ -33,10 +34,3 @@ lib_LTLIBRARIES = @PACKAGE_NAME@.la clang-format: clang-format -style=file -i `find . -name *.[ch]` - -install: - ${INSTALL} -d $(DESTDIR)/usr/local/nginx/modules/ - ${INSTALL} -p -m 755 .libs/@PACKAGE_NAME@.so $(DESTDIR)/usr/local/nginx/modules/@PACKAGE_NAME@.so - -uninstall: - rm -f $(DESTDIR)/usr/local/nginx/modules/@PACKAGE_NAME@.so