aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-04 03:29:12 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-04 03:29:12 +0200
commit2e1efc10229d2a0ea078443349185faf4ae2e0a1 (patch)
treee426efbfc7c676b3c548407c483f95109c721353 /Makefile
parentderp (diff)
downloadlibgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.gz
libgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.bz2
libgammamm-2e1efc10229d2a0ea078443349185faf4ae2e0a1.tar.xz
add pkg-config file1.0
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
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)"