From 2e1efc10229d2a0ea078443349185faf4ae2e0a1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Sep 2014 03:29:12 +0200 Subject: add pkg-config file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 86da493..1cf9508 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,10 @@ INCLUDE ?= /include DATA ?= /share # The library path including prefix LIBDIR ?= $(PREFIX)$(LIB) -# The library header including prefix. +# The library header path including prefix. INCLUDEDIR ?= $(PREFIX)$(INCLUDE) +# The pkg-config file path including prefix. +PKGCONFIGDIR ?= $(LIBDIR)/pkgconfig # The resource path including prefix DATADIR ?= $(PREFIX)$(DATA) # The generic documentation path including prefix @@ -132,7 +134,7 @@ install: install-base install-all: install-base .PHONY: install-base -install-base: install-lib install-include install-copyright +install-base: install-lib install-include install-pc install-copyright .PHONY: install-lib @@ -147,6 +149,11 @@ install-include: install -dm755 -- "$(DESTDIR)$(INCLUDEDIR)" install -m644 $(foreach H,$(HEADERS),src/$(H).hh) -- "$(DESTDIR)$(INCLUDEDIR)" +.PHONY: install-pc +install-pc: + install -dm755 -- "$(DESTDIR)$(PKGCONFIGDIR)" + install -m644 libgammamm.pc -- "$(DESTDIR)$(PKGCONFIGDIR)" + .PHONY: install-copyright install-copyright: install-copying install-license @@ -169,6 +176,7 @@ uninstall: -rm -- "$(DESTDIR)$(LIBDIR)/libgammamm.$(SO).$(LIB_MAJOR)" -rm -- "$(DESTDIR)$(LIBDIR)/libgammamm.$(SO)" -rm -- $(foreach H,$(HEADERS),"$(DESTDIR)$(INCLUDEDIR)/$(H).hh") + -rm -- "$(DESTDIR)$(PKGCONFIGDIR)/libgammamm.pc" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" -rmdir -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" -- cgit v1.2.3-70-g09d2