|
2 | 2 | # Copyright © 2009-2012, 2014 Université Bordeaux
|
3 | 3 | # Copyright © 2009-2014 Cisco Systems, Inc. All rights reserved.
|
4 | 4 | # Copyright © 2020 Hewlett Packard Enterprise. All rights reserved.
|
| 5 | +# Copyright © 2023 Université de Reims Champagne-Ardenne. All rights reserved. |
5 | 6 | #
|
6 | 7 | # See COPYING in top-level directory.
|
7 | 8 |
|
@@ -89,30 +90,34 @@ SEDMAN = $(SED) -e 's/%PACKAGE_NAME%/@PACKAGE_NAME@/g' \
|
89 | 90 | @ $(SEDMAN) \
|
90 | 91 | > $@ < $<
|
91 | 92 |
|
| 93 | +hwloc_ls_name=`echo "hwloc-ls" | $(SED) -e "$(transform)"` |
| 94 | +lstopo_name=`echo "lstopo" | $(SED) -e "$(transform)"` |
| 95 | +lstopo_no_graphics_name=`echo "lstopo-no-graphics" | $(SED) -e "$(transform)"` |
| 96 | + |
92 | 97 | install-exec-hook:
|
93 |
| - rm -f $(DESTDIR)$(bindir)/hwloc-ls$(EXEEXT) |
94 |
| - cd $(DESTDIR)$(bindir) && $(LN_S) lstopo-no-graphics$(EXEEXT) hwloc-ls$(EXEEXT) |
| 98 | + rm -f $(DESTDIR)$(bindir)/$(hwloc_ls_name)$(EXEEXT) |
| 99 | + cd $(DESTDIR)$(bindir) && $(LN_S) $(lstopo_no_graphics_name)$(EXEEXT) $(hwloc_ls_name)$(EXEEXT) |
95 | 100 | if !HWLOC_HAVE_WINDOWS
|
96 | 101 | if !HWLOC_HAVE_CAIRO
|
97 |
| - rm -f $(DESTDIR)$(bindir)/lstopo |
98 |
| - cd $(DESTDIR)$(bindir) && $(LN_S) lstopo-no-graphics$(EXEEXT) lstopo$(EXEEXT) || true |
| 102 | + rm -f $(DESTDIR)$(bindir)/$(lstopo_name)$(EXEEXT) |
| 103 | + cd $(DESTDIR)$(bindir) && $(LN_S) $(lstopo_no_graphics_name)$(EXEEXT) $(lstopo_name)$(EXEEXT) || true |
99 | 104 | endif
|
100 | 105 | endif
|
101 | 106 |
|
102 | 107 | install-data-hook:
|
103 |
| - rm -f $(DESTDIR)$(man1dir)/hwloc-ls.1 |
104 |
| - cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo-no-graphics.1 hwloc-ls.1 |
105 |
| - rm -f $(DESTDIR)$(man1dir)/lstopo.1 |
106 |
| - cd $(DESTDIR)$(man1dir) && $(LN_S) lstopo-no-graphics.1 lstopo.1 |
| 108 | + rm -f $(DESTDIR)$(man1dir)/$(hwloc_ls_name).1 |
| 109 | + cd $(DESTDIR)$(man1dir) && $(LN_S) $(lstopo_no_graphics_name).1 $(hwloc_ls_name).1 |
| 110 | + rm -f $(DESTDIR)$(man1dir)/$(lstopo_name).1 |
| 111 | + cd $(DESTDIR)$(man1dir) && $(LN_S) $(lstopo_no_graphics_name).1 $(lstopo_name).1 |
107 | 112 |
|
108 | 113 | uninstall-local:
|
109 |
| - rm -f $(DESTDIR)$(bindir)/hwloc-ls$(EXEEXT) |
| 114 | + rm -f $(DESTDIR)$(bindir)/$(hwloc_ls_name)$(EXEEXT) |
110 | 115 | if !HWLOC_HAVE_WINDOWS
|
111 | 116 | if !HWLOC_HAVE_CAIRO
|
112 |
| - rm -f $(DESTDIR)$(bindir)/lstopo$(EXEEXT) |
| 117 | + rm -f $(DESTDIR)$(bindir)/$(lstopo_name)$(EXEEXT) |
113 | 118 | endif
|
114 | 119 | endif
|
115 |
| - rm -f $(DESTDIR)$(man1dir)/hwloc-ls.1 $(DESTDIR)$(man1dir)/lstopo.1 |
| 120 | + rm -f $(DESTDIR)$(man1dir)/$(hwloc_ls_name).1 $(DESTDIR)$(man1dir)/$(lstopo_name).1 |
116 | 121 |
|
117 | 122 | distclean-local:
|
118 | 123 | rm -f $(nodist_man_MANS)
|
0 commit comments