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.

109 lines
3.2 KiB

  1. From 3d3474b3fc4272840310414aaa2edaed2c52a08e Mon Sep 17 00:00:00 2001
  2. From: Nathan Scott <nathans@redhat.com>
  3. Date: Thu, 23 Sep 2021 10:06:38 +1000
  4. Subject: [PATCH] Adjust Makefile.am macro definitions for older automake
  5. versions
  6. Fixes: https://github.com/htop-dev/htop/issues/803
  7. PR: https://github.com/htop-dev/htop/issues/810
  8. --- a/Makefile.am
  9. +++ b/Makefile.am
  10. @@ -1,3 +1,11 @@
  11. +if !HTOP_PCP
  12. +bin_PROGRAMS = htop
  13. +myhtopplatprogram = htop.c
  14. +else
  15. +bin_PROGRAMS = pcp-htop
  16. +myhtopplatprogram = pcp-htop.c
  17. +endif
  18. +
  19. dist_man_MANS = htop.1
  20. EXTRA_DIST = \
  21. $(dist_man_MANS) \
  22. @@ -181,7 +189,6 @@ linux_platform_sources = \
  23. if HTOP_LINUX
  24. AM_LDFLAGS += -rdynamic
  25. -myhtopplatprogram = htop
  26. myhtopplatheaders = $(linux_platform_headers)
  27. myhtopplatsources = $(linux_platform_sources)
  28. endif
  29. @@ -214,7 +221,6 @@ freebsd_platform_sources = \
  30. zfs/ZfsCompressedArcMeter.c
  31. if HTOP_FREEBSD
  32. -myhtopplatprogram = htop
  33. myhtopplatheaders = $(freebsd_platform_headers)
  34. myhtopplatsources = $(freebsd_platform_sources)
  35. endif
  36. @@ -240,7 +246,6 @@ dragonflybsd_platform_sources = \
  37. generic/uname.c
  38. if HTOP_DRAGONFLYBSD
  39. -myhtopplatprogram = htop
  40. myhtopplatheaders = $(dragonflybsd_platform_headers)
  41. myhtopplatsources = $(dragonflybsd_platform_sources)
  42. endif
  43. @@ -266,7 +271,6 @@ netbsd_platform_sources = \
  44. netbsd/NetBSDProcessList.c
  45. if HTOP_NETBSD
  46. -myhtopplatprogram = htop
  47. myhtopplatheaders = $(netbsd_platform_headers)
  48. myhtopplatsources = $(netbsd_platform_sources)
  49. endif
  50. @@ -292,7 +296,6 @@ openbsd_platform_sources = \
  51. openbsd/Platform.c
  52. if HTOP_OPENBSD
  53. -myhtopplatprogram = htop
  54. myhtopplatheaders = $(openbsd_platform_headers)
  55. myhtopplatsources = $(openbsd_platform_sources)
  56. endif
  57. @@ -326,7 +329,6 @@ darwin_platform_sources = \
  58. if HTOP_DARWIN
  59. AM_LDFLAGS += -framework IOKit -framework CoreFoundation
  60. -myhtopplatprogram = htop
  61. myhtopplatheaders = $(darwin_platform_headers)
  62. myhtopplatsources = $(darwin_platform_sources)
  63. endif
  64. @@ -357,7 +359,6 @@ solaris_platform_sources = \
  65. zfs/ZfsCompressedArcMeter.c
  66. if HTOP_SOLARIS
  67. -myhtopplatprogram = htop
  68. myhtopplatheaders = $(solaris_platform_headers)
  69. myhtopplatsources = $(solaris_platform_sources)
  70. endif
  71. @@ -393,10 +394,9 @@ pcp_platform_sources = \
  72. zfs/ZfsCompressedArcMeter.c
  73. if HTOP_PCP
  74. -myhtopplatprogram = pcp-htop
  75. myhtopplatheaders = $(pcp_platform_headers)
  76. myhtopplatsources = $(pcp_platform_sources)
  77. -pcp_htop_SOURCES = $(myhtopplatprogram).c $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
  78. +pcp_htop_SOURCES = $(myhtopplatprogram) $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
  79. endif
  80. # Unsupported
  81. @@ -416,15 +416,13 @@ unsupported_platform_sources = \
  82. unsupported/UnsupportedProcessList.c
  83. if HTOP_UNSUPPORTED
  84. -myhtopplatprogram = htop
  85. myhtopplatsources = $(unsupported_platform_sources)
  86. myhtopplatheaders = $(unsupported_platform_headers)
  87. endif
  88. # ----
  89. -bin_PROGRAMS = $(myhtopplatprogram)
  90. -htop_SOURCES = $(myhtopplatprogram).c $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
  91. +htop_SOURCES = $(myhtopplatprogram) $(myhtopheaders) $(myhtopplatheaders) $(myhtopsources) $(myhtopplatsources)
  92. nodist_htop_SOURCES = config.h
  93. target: