aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-19 22:44:26 +0100
committerMattias Andrée <maandree@kth.se>2022-02-19 22:44:26 +0100
commit98754c3900671f88f30f40eacf9a576adb037fb6 (patch)
tree53314fa37366d6ff80c17a9cf0fdf1c4d2a33505 /Makefile
parentFix union of overlapping charset subset ranges (diff)
downloadlibfonts-98754c3900671f88f30f40eacf9a576adb037fb6.tar.gz
libfonts-98754c3900671f88f30f40eacf9a576adb037fb6.tar.bz2
libfonts-98754c3900671f88f30f40eacf9a576adb037fb6.tar.xz
Improve makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 978519e..57da740 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,7 @@ $(LOBJ): $(HDR)
libfonts.a: $(OBJ)
@rm -f -- $@
$(AR) rc $@ $(OBJ)
+ $(AR) ts $@ > /dev/null
libfonts.$(LIBEXT): $(LOBJ)
$(CC) $(LIBFLAGS) -o $@ $(LOBJ) $(LDFLAGS)
@@ -50,6 +51,7 @@ install: libfonts.a libfonts.$(LIBEXT)
mkdir -p -- "$(DESTDIR)$(PREFIX)/include"
cp -- libfonts.a "$(DESTDIR)$(PREFIX)/lib/"
cp -- libfonts.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMINOREXT)"
+ $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMINOREXT)"
ln -sf -- libfonts.$(LIBMINOREXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBMAJOREXT)"
ln -sf -- libfonts.$(LIBMAJOREXT) "$(DESTDIR)$(PREFIX)/lib/libfonts.$(LIBEXT)"
cp -- libfonts.h "$(DESTDIR)$(PREFIX)/include/"