matwm2-0.1.2_pre3-destdir-fix.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From a752f42ebdc0b3cb7c7246c96fdb1601a4d1eae4 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?G=C3=B6kt=C3=BCrk=20Y=C3=BCksek?= <gokturk@gentoo.org>
  3. Date: Wed, 8 Feb 2017 02:00:08 -0500
  4. Subject: [PATCH] Makefile.in: use DESTDIR for install and deinstall targets
  5. Distinguish between PREFIX and DESTDIR.
  6. ---
  7. Makefile.in | 8 ++++----
  8. 1 file changed, 4 insertions(+), 4 deletions(-)
  9. diff --git a/Makefile.in b/Makefile.in
  10. index fd3e299..5ec1471 100644
  11. --- a/Makefile.in
  12. +++ b/Makefile.in
  13. @@ -23,12 +23,12 @@ clean:
  14. $(RM) matwm2 *.o
  15. install: matwm2
  16. - mkdir -p $(PREFIX)/bin $(MANDIR)/man1
  17. - install -s matwm2 $(PREFIX)/bin
  18. - install matwm2.1 $(MANDIR)/man1
  19. + mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(MANDIR)/man1
  20. + install -s matwm2 $(DESTDIR)$(PREFIX)/bin
  21. + install matwm2.1 $(DESTDIR)$(MANDIR)/man1
  22. deinstall:
  23. - $(RM) $(PREFIX)/bin/matwm2 $(MANDIR)/man1/matwm2.1* $(MANDIR)/cat1/matwm2.1*
  24. + $(RM) $(DESTDIR)$(PREFIX)/bin/matwm2 $(DESTDIR)$(MANDIR)/man1/matwm2.1* $(DESTDIR)$(MANDIR)/cat1/matwm2.1*
  25. # converts default_matwmrc into C code that can be compiled into the binary
  26. defcfg:
  27. --
  28. 2.10.2