mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
UDEVDIR is used in both `chreipl-fcp-mpath` and `zdev`, but with a different meaning. In the former it points to the base udev directory, not the rules directory; in the later it points to the rules directory. If someone was to call `make` from the top level directory, and set UDEVDIR for the whole build/installation, it would either break `zdev` or `chreipl-fcp-mpath` (depending on what it was set to). Fix this by pulling the definition of it in the shared `common.mak` file, and giving it a common meaning. Point UDEVDIR to the base udev directory, and UDEVRULESDIR to the rules directory below it. Semantically nothing changes for a default build/installation. Signed-off-by: Benjamin Block <bblock@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
9 lines
182 B
Makefile
9 lines
182 B
Makefile
# Common definitions
|
|
include ../../common.mak
|
|
|
|
RULES := 81-dpm.rules
|
|
|
|
install:
|
|
$(INSTALL) -m 755 -d $(DESTDIR)$(UDEVRULESDIR)
|
|
$(INSTALL) -m 644 $(RULES) $(DESTDIR)$(UDEVRULESDIR)/
|