You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
3.9 KiB

  1. --- a/Makefile.in
  2. +++ b/Makefile.in
  3. @@ -44,8 +44,8 @@ all:
  4. done && test -z "$$fail"
  5. install:
  6. - $(top_srcdir)/mkinstalldirs $(libdir)/pkgconfig
  7. - $(INSTALL_DATA) serdisplib.pc $(libdir)/pkgconfig/
  8. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
  9. + $(INSTALL_DATA) serdisplib.pc $(DESTDIR)$(libdir)/pkgconfig/
  10. @for dir in ${subdirs}; do \
  11. (cd $(srcdir) && cd $$dir && $(MAKE) install) \
  12. || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
  13. --- a/server/Makefile.in
  14. +++ b/server/Makefile.in
  15. @@ -102,9 +102,9 @@ distclean: clean
  16. install: $(PROGRAMS)
  17. - $(top_srcdir)/mkinstalldirs $(bindir)
  18. - $(top_srcdir)/mkinstalldirs $(sbindir)
  19. - $(top_srcdir)/mkinstalldirs $(sysconfdir)
  20. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
  21. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
  22. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)
  23. list='$(PROGRAMS_SBIN)'; \
  24. for prog in $$list; do \
  25. $(INSTALL_PROGRAM) $$prog $(sbindir)/ ; \
  26. --- a/src/Makefile.in
  27. +++ b/src/Makefile.in
  28. @@ -28,7 +28,7 @@ includedir = @includedir@
  29. datarootdir = @datarootdir@
  30. CC=@CC@
  31. -AR=@AR@ -r
  32. +AR=@AR@
  33. LN_S=@LN_S@
  34. INSTALL=@INSTALL@
  35. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  36. @@ -184,14 +184,14 @@ programs: $(PROGRAMS)
  37. $(CC) $(CFLAGS) $(DEFINES) -c $<
  38. $(LIB_DIR)/$(LIB_STATIC): $(LIB_OBJECTS)
  39. - $(top_srcdir)/mkinstalldirs $(top_srcdir)/lib
  40. - $(AR) $(LIB_DIR)/$(LIB_STATIC) $(LIB_OBJECTS)
  41. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(top_srcdir)/lib
  42. + $(AR) -r -- $(LIB_DIR)/$(LIB_STATIC) $(LIB_OBJECTS)
  43. $(LIB_DIR)/$(LIB_SHARED): $(LIB_OBJECTS)
  44. - $(top_srcdir)/mkinstalldirs $(top_srcdir)/lib
  45. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(top_srcdir)/lib
  46. $(CC) -fPIC -shared $(SONAME_FLAG) -o $(LIB_DIR)/$(LIB_SHARED) $(LIB_OBJECTS) $(LDFLAGS) $(EXTRA_LIBS)
  47. - cd $(LIB_DIR) && $(LN_S) -f $(LIB_SHARED) lib$(LIB_NAME).so.$(VERSION_MAJOR)
  48. - cd $(LIB_DIR) && $(LN_S) -f lib$(LIB_NAME).so.$(VERSION_MAJOR) lib$(LIB_NAME).so
  49. + cd $(DESTDIR)$(LIB_DIR) && $(LN_S) -f $(LIB_SHARED) lib$(LIB_NAME).so.$(VERSION_MAJOR)
  50. + cd $(DESTDIR)$(LIB_DIR) && $(LN_S) -f lib$(LIB_NAME).so.$(VERSION_MAJOR) lib$(LIB_NAME).so
  51. testserdisp: $(LIB_DIR)/$(LIB_STATIC) $(OBJECTS)
  52. $(CC) -o testserdisp $(OBJECTS) $(LIB_SERDISP) $(EXTRA_LIBS_STATIC)
  53. @@ -204,20 +204,20 @@ distclean: clean
  54. /bin/rm -f Makefile
  55. install: $(LIB_DIR)/$(LIB_SHARED) $(LIB_DIR)/$(LIB_STATIC)
  56. - $(top_srcdir)/mkinstalldirs $(bindir)
  57. - $(top_srcdir)/mkinstalldirs $(libdir)
  58. - $(top_srcdir)/mkinstalldirs $(includedir)
  59. - $(top_srcdir)/mkinstalldirs $(includedir)/serdisplib
  60. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
  61. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
  62. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
  63. + $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)/serdisplib
  64. - $(INSTALL_PROGRAM) $(PROGRAMS) $(bindir)/
  65. - $(INSTALL_PROGRAM) $(LIB_DIR)/$(LIB_SHARED) $(libdir)/
  66. - $(INSTALL_DATA) $(LIB_DIR)/$(LIB_STATIC) $(libdir)/
  67. + $(INSTALL_PROGRAM) $(PROGRAMS) $(DESTDIR)$(bindir)/
  68. + $(INSTALL_PROGRAM) $(LIB_DIR)/$(LIB_SHARED) $(DESTDIR)$(libdir)/
  69. + $(INSTALL_DATA) $(LIB_DIR)/$(LIB_STATIC) $(DESTDIR)$(libdir)/
  70. list='$(LIB_HEADERFILES)'; \
  71. for headerfile in $$list; do \
  72. - $(INSTALL_DATA) ../include/serdisplib/$$headerfile $(includedir)/serdisplib/ ; \
  73. + $(INSTALL_DATA) ../include/serdisplib/$$headerfile $(DESTDIR)$(includedir)/serdisplib/ ; \
  74. done
  75. - cd $(libdir) && $(LN_S) -f $(LIB_SHARED) lib$(LIB_NAME).so.$(VERSION_MAJOR)
  76. - cd $(libdir) && $(LN_S) -f lib$(LIB_NAME).so.$(VERSION_MAJOR) lib$(LIB_NAME).so
  77. + cd $(DESTDIR)$(libdir) && $(LN_S) -f $(LIB_SHARED) lib$(LIB_NAME).so.$(VERSION_MAJOR)
  78. + cd $(DESTDIR)$(libdir) && $(LN_S) -f lib$(LIB_NAME).so.$(VERSION_MAJOR) lib$(LIB_NAME).so
  79. uninstall:
  80. -/bin/rm -f $(libdir)/libserdisp*
  81. --- a/tools/Makefile.in
  82. +++ b/tools/Makefile.in
  83. @@ -151,7 +151,7 @@ distclean: clean
  84. install: $(PROGRAMS)
  85. list='$(PROGRAMS)'; \
  86. for prog in $$list; do \
  87. - $(INSTALL_PROGRAM) $$prog $(bindir)/ ; \
  88. + $(INSTALL_PROGRAM) $$prog $(DESTDIR)$(bindir)/ ; \
  89. done
  90. uninstall: $(PROGRAMS)