Introduction
Introduction Statistics Contact Development Disclaimer Help
Install a simple pkg-config-file if desired - libgrapheme - unicode string libr…
git clone git://git.suckless.org/libgrapheme
Log
Files
Refs
README
LICENSE
---
commit 4027860f6a5384fe60181d79337862bf53116bec
parent 5998352d2d2e6e37531548f8e986abae5ff8ef02
Author: Laslo Hunhold <[email protected]>
Date: Tue, 25 Oct 2022 15:35:30 +0200
Install a simple pkg-config-file if desired
This was requested by a few packagers and it doesn't hurt to add a bit
of metadata.
Signed-off-by: Laslo Hunhold <[email protected]>
Diffstat:
M Makefile | 2 ++
M config.mk | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/Makefile b/Makefile
@@ -325,6 +325,7 @@ install: all
if [ "$(SOSYMLINK)" = "true" ]; then ln -sf "$(SONAME)" "$(DESTDIR)$(L…
cp -f grapheme.h "$(DESTDIR)$(INCPREFIX)"
if ! [ -z "$(LDCONFIG)" ]; then $(SHELL) -c "$(LDCONFIG)"; fi
+ if ! [ -z "$(PCPREFIX)" ]; then mkdir -p "$(DESTDIR)$(PCPREFIX)"; prin…
uninstall:
for m in $(MAN3:=.3); do rm -f "$(DESTDIR)$(MANPREFIX)/man3/`basename …
@@ -336,6 +337,7 @@ uninstall:
if [ "$(SOSYMLINK)" = "true" ]; then rm -f "$(DESTDIR)$(LIBPREFIX)/lib…
rm -f "$(DESTDIR)$(INCPREFIX)/grapheme.h"
if ! [ -z "$(LDCONFIG)" ]; then $(SHELL) -c "$(LDCONFIG)"; fi
+ if ! [ -z "$(PCPREFIX)" ]; then rm -f "$(DESTDIR)$(PCPREFIX)/libgraphe…
clean:
rm -f $(BENCHMARK:=.o) benchmark/util.o $(BENCHMARK) $(GEN:=.h) $(GEN:…
diff --git a/config.mk b/config.mk
@@ -1,10 +1,12 @@
# Customize below to fit your system (run ./configure for automatic presets)
# paths
-PREFIX = /usr/local
+DESTDIR =
+PREFIX = /usr/local
INCPREFIX = $(PREFIX)/include
LIBPREFIX = $(PREFIX)/lib
MANPREFIX = $(PREFIX)/share/man
+PCPREFIX = $(LIBPREFIX)/pkgconfig # unset to not install a pkg-config-file
# flags
CPPFLAGS = -D_DEFAULT_SOURCE
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.