0009-install-dir-dependency.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From: Maarten ter Huurne <maarten@treewalker.org>
  2. Date: Mon, 15 Sep 2014 02:27:09 +0200
  3. Subject: Ensure that installation dirs exist before copying files into them
  4. Since the "install_bin" target requires the installation directories
  5. to exist, it should depend on the "installdirs" target. The previous
  6. approach of having "install" depend on "installdirs" is not reliable.
  7. For example, in a parallel build, there was no guarantee that
  8. "installdirs" would be finished before "install_bin" runs. Also if
  9. the user requested only "install_bin" to be made, "installdirs" would
  10. be skipped altogether.
  11. Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
  12. ---
  13. Makefile.in | 4 ++--
  14. 1 file changed, 2 insertions(+), 2 deletions(-)
  15. diff --git a/Makefile.in b/Makefile.in
  16. index 860f351..f0fe08d 100644
  17. --- a/Makefile.in
  18. +++ b/Makefile.in
  19. @@ -82,7 +82,7 @@ screen: $(OFILES)
  20. $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(CPPFLAGS) $(DEFS) \
  21. $(OPTIONS) $(CFLAGS) $<
  22. -install_bin: .version screen
  23. +install_bin: .version screen installdirs
  24. $(INSTALL_PROGRAM) screen $(DESTDIR)$(bindir)/$(SCREEN)
  25. -chown root $(DESTDIR)$(bindir)/$(SCREEN)
  26. -chmod 4755 $(DESTDIR)$(bindir)/$(SCREEN)
  27. @@ -94,7 +94,7 @@ endif
  28. cp $(srcdir)/utf8encodings/?? $(DESTDIR)$(SCREENENCODINGS)
  29. ###############################################################################
  30. -install: installdirs install_bin
  31. +install: install_bin
  32. cd doc ; $(MAKE) install
  33. -if [ -d /usr/lib/terminfo ]; then \
  34. PATH="$$PATH:/usr/5bin" tic ${srcdir}/terminfo/screeninfo.src; \
  35. --
  36. 1.8.4.5