0001-build-system-fix.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. Install the setserial program in /usr/bin instead of /bin, and make
  2. sure that the directories (especially the manpages directory) are
  3. created before installing files to them. This is similar to what
  4. automake does.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. Makefile.in | 7 ++++---
  8. 1 file changed, 4 insertions(+), 3 deletions(-)
  9. Index: setserial-2.17/Makefile.in
  10. ===================================================================
  11. --- setserial-2.17.orig/Makefile.in
  12. +++ setserial-2.17/Makefile.in
  13. @@ -26,9 +26,10 @@ setserial.cat: setserial.8
  14. nroff -man setserial.8 > setserial.cat
  15. install: setserial setserial.8
  16. - $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
  17. - $(STRIP) $(DESTDIR)/bin/setserial
  18. - $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8
  19. + mkdir -p $(DESTDIR)/usr/bin
  20. + $(INSTALL_PROGRAM) setserial $(DESTDIR)/usr/bin
  21. + mkdir -p $(DESTDIR)/usr/share/man/man8
  22. + $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/share/man/man8
  23. clean:
  24. $(RM) setserial setserial.o setserial.cat *~