install-only-distributed-binaries-manuals.patch 923 B

123456789101112131415161718192021222324252627282930313233343536
  1. Description: Only install the manuals for installed binaries
  2. Author: David Suárez <david.sephirot@gmail.com>
  3. Origin: vendor
  4. Bug: https://sourceforge.net/p/giflib/bugs/145/
  5. Last-Update: 2019-11-25
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -62,6 +62,17 @@
  9. LDLIBS=libgif.a -lm
  10. +MANUAL_PAGES = \
  11. + doc/gif2rgb.1 \
  12. + doc/gifbuild.1 \
  13. + doc/gifclrmp.1 \
  14. + doc/gifecho.1 \
  15. + doc/giffix.1 \
  16. + doc/gifinto.1 \
  17. + doc/giflib.1 \
  18. + doc/giftext.1 \
  19. + doc/giftool.1
  20. +
  21. all: libgif.so libgif.a libutil.so libutil.a $(UTILS)
  22. $(MAKE) -C doc
  23. @@ -105,7 +116,7 @@
  24. ln -sf libgif.so.$(LIBMAJOR) "$(DESTDIR)$(LIBDIR)/libgif.so"
  25. install-man:
  26. $(INSTALL) -d "$(DESTDIR)$(MANDIR)/man1"
  27. - $(INSTALL) -m 644 doc/*.1 "$(DESTDIR)$(MANDIR)/man1"
  28. + $(INSTALL) -m 644 $(MANUAL_PAGES) "$(DESTDIR)$(MANDIR)/man1"
  29. uninstall: uninstall-man uninstall-include uninstall-lib uninstall-bin
  30. uninstall-bin:
  31. cd "$(DESTDIR)$(BINDIR)" && rm -f $(INSTALLABLE)