59 lines
1.7 KiB
Diff
59 lines
1.7 KiB
Diff
From 61f375082c80ee479eb8ff03189aea691a6a06aa Mon Sep 17 00:00:00 2001
|
|
From: "Eric S. Raymond" <esr@thyrsus.com>
|
|
Date: Wed, 21 Feb 2024 08:33:51 -0500
|
|
Subject: [PATCH] Correct document page install.
|
|
|
|
---
|
|
Makefile | 13 +++++++++----
|
|
1 file changed, 9 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 87966a9..f4ecb24 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -61,19 +61,23 @@ UTILS = $(INSTALLABLE) \
|
|
gifsponge \
|
|
gifwedge
|
|
|
|
LDLIBS=libgif.a -lm
|
|
|
|
-MANUAL_PAGES = \
|
|
+MANUAL_PAGES_1 = \
|
|
doc/gif2rgb.xml \
|
|
doc/gifbuild.xml \
|
|
doc/gifclrmp.xml \
|
|
doc/giffix.xml \
|
|
- doc/giflib.xml \
|
|
doc/giftext.xml \
|
|
doc/giftool.xml
|
|
|
|
+MANUAL_PAGES_7 = \
|
|
+ doc/giflib.xml
|
|
+
|
|
+MANUAL_PAGES = $(MANUAL_PAGES_1) $(MANUAL_PAGES_7)
|
|
+
|
|
SOEXTENSION = so
|
|
LIBGIFSO = libgif.$(SOEXTENSION)
|
|
LIBGIFSOMAJOR = libgif.$(SOEXTENSION).$(LIBMAJOR)
|
|
LIBGIFSOVER = libgif.$(SOEXTENSION).$(LIBVER)
|
|
LIBUTILSO = libutil.$(SOEXTENSION)
|
|
@@ -146,12 +150,13 @@ install-lib:
|
|
$(INSTALL) -m 644 libgif.a "$(DESTDIR)$(LIBDIR)/libgif.a"
|
|
$(INSTALL) -m 755 $(LIBGIFSO) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOVER)"
|
|
ln -sf $(LIBGIFSOVER) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSOMAJOR)"
|
|
ln -sf $(LIBGIFSOMAJOR) "$(DESTDIR)$(LIBDIR)/$(LIBGIFSO)"
|
|
install-man:
|
|
- $(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1"
|
|
- $(INSTALL) -m 644 $(MANUAL_PAGES) "$(DESTDIR)$(MANDIR)/man1"
|
|
+ $(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1" "$(DESTDIR)$(MANDIR)/man7"
|
|
+ $(INSTALL) -m 644 $(MANUAL_PAGES_1:xml=1) "$(DESTDIR)$(MANDIR)/man1"
|
|
+ $(INSTALL) -m 644 $(MANUAL_PAGES_7:xml=7) "$(DESTDIR)$(MANDIR)/man7"
|
|
uninstall: uninstall-man uninstall-include uninstall-lib uninstall-bin
|
|
uninstall-bin:
|
|
cd "$(DESTDIR)$(BINDIR)" && rm -f $(INSTALLABLE)
|
|
uninstall-include:
|
|
rm -f "$(DESTDIR)$(INCDIR)/gif_lib.h"
|
|
--
|
|
2.43.0
|
|
|