diff --git a/genprotimg/Makefile b/genprotimg/Makefile index 8c9f7048..6a2e37e4 100644 --- a/genprotimg/Makefile +++ b/genprotimg/Makefile @@ -3,7 +3,7 @@ include ../common.mak .DEFAULT_GOAL := all -PKGDATADIR := "$(DESTDIR)$(TOOLS_DATADIR)/genprotimg" +PKGDATADIR := "$(TOOLS_DATADIR)/genprotimg" TESTS := SUBDIRS := boot src man RECURSIVE_TARGETS := all-recursive install-recursive clean-recursive @@ -11,8 +11,8 @@ RECURSIVE_TARGETS := all-recursive install-recursive clean-recursive all: all-recursive install: install-recursive - $(INSTALL) -d -m 755 "$(PKGDATADIR)" - $(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 samples/check_hostkeydoc "$(PKGDATADIR)" + $(INSTALL) -d -m 755 "$(DESTDIR)$(PKGDATADIR)" + $(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 samples/check_hostkeydoc "$(DESTDIR)$(PKGDATADIR)" clean: clean-recursive diff --git a/genprotimg/boot/Makefile b/genprotimg/boot/Makefile index 799df9cc..73f3c9a8 100644 --- a/genprotimg/boot/Makefile +++ b/genprotimg/boot/Makefile @@ -7,7 +7,7 @@ DEBUG_FILES := $(addsuffix .debug,$(FILES)) ifeq ($(HOST_ARCH),s390x) ZIPL_DIR := $(rootdir)/zipl ZIPL_BOOT_DIR := $(ZIPL_DIR)/boot -PKGDATADIR := $(DESTDIR)$(TOOLS_DATADIR)/genprotimg +PKGDATADIR := $(TOOLS_DATADIR)/genprotimg INCLUDE_PATHS := $(ZIPL_BOOT_DIR) $(ZIPL_DIR)/include $(rootdir)/include INCLUDE_PARMS := $(addprefix -I,$(INCLUDE_PATHS)) @@ -86,9 +86,9 @@ stage3b.elf: head.o $(ZIPL_OBJS) @chmod a-x $@ install: stage3a.bin stage3b_reloc.bin - $(INSTALL) -d -m 755 "$(PKGDATADIR)" - $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3a.bin "$(PKGDATADIR)" - $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3b_reloc.bin "$(PKGDATADIR)" + $(INSTALL) -d -m 755 "$(DESTDIR)$(PKGDATADIR)" + $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3a.bin "$(DESTDIR)$(PKGDATADIR)" + $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3b_reloc.bin "$(DESTDIR)$(PKGDATADIR)" else # Don't generate the dependency files (see `common.mak` for the diff --git a/genprotimg/src/Makefile b/genprotimg/src/Makefile index 08734bff..d447e6cf 100644 --- a/genprotimg/src/Makefile +++ b/genprotimg/src/Makefile @@ -3,7 +3,7 @@ include ../../common.mak bin_PROGRAM = genprotimg -PKGDATADIR ?= "$(DESTDIR)$(TOOLS_DATADIR)/genprotimg" +PKGDATADIR ?= "$(TOOLS_DATADIR)/genprotimg" SRC_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) TOP_SRCDIR := $(SRC_DIR)/../ ROOT_DIR = $(TOP_SRC_DIR)/../../