aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Kenno Handojo <timkenhan@gmail.com>2024-02-15 19:01:50 +0700
committerRobin H. Johnson <robbat2@gentoo.org>2024-02-16 21:11:26 -0800
commit2be65fba58bd62ab62288bdffcd5029cdc2ecb2a (patch)
tree56cfe6390ec3927279cb1e0f17a04f21e7a6703b
parentensure package version is on the manpage (diff)
downloadgenkernel-2be65fba58bd62ab62288bdffcd5029cdc2ecb2a.tar.gz
genkernel-2be65fba58bd62ab62288bdffcd5029cdc2ecb2a.tar.bz2
genkernel-2be65fba58bd62ab62288bdffcd5029cdc2ecb2a.zip
corrected variable issues in make install
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 4b13597..44a09c1 100644
--- a/Makefile
+++ b/Makefile
@@ -175,10 +175,10 @@ verify-shellscripts-initramfs:
$(BUILD_DIR)/build-config:
# $(addprefix $(BUILD_DIR)/temp/,$(TEMPFILES))
install -d $(BUILD_DIR)
- echo ${PREFIX} > $(BUILD_DIR)/PREFIX
- echo ${BINDIR} > $(BUILD_DIR)/BINDIR
- echo ${SYSCONFDIR} > $(BUILD_DIR)/SYSCONFDIR
- echo ${MANDIR} > $(BUILD_DIR)/MANDIR
+ echo $(PREFIX) > $(BUILD_DIR)/PREFIX
+ echo $(BINDIR) > $(BUILD_DIR)/BINDIR
+ echo $(SYSCONFDIR) > $(BUILD_DIR)/SYSCONFDIR
+ echo $(MANDIR) > $(BUILD_DIR)/MANDIR
touch $(BUILD_DIR)/build-config
$(BUILD_DIR)/software.sh:
@@ -197,11 +197,11 @@ $(BUILD_DIR)/genkernel: $(addprefix $(BUILD_DIR)/,$(FINAL_DEPS)) $(BUILD_DIR)/so
SHARE_DIRS = arch defaults gkbuilds modules netboot patches worker_modules
-install: PREFIX := $(file <$(BUILD_DIR)/PREFIX)
-install: BINDIR := $(file <$(BUILD_DIR)/BINDIR)
-install: SYSCONFDIR := $(file <$(BUILD_DIR)/SYSCONFDIR)
-install: MANDIR := $(file <$(BUILD_DIR)/MANDIR)
install: all
+ $(eval PREFIX := $(file <$(BUILD_DIR)/PREFIX))
+ $(eval BINDIR := $(file <$(BUILD_DIR)/BINDIR))
+ $(eval SYSCONFDIR := $(file <$(BUILD_DIR)/SYSCONFDIR))
+ $(eval MANDIR := $(file <$(BUILD_DIR)/MANDIR))
install -d $(DESTDIR)/$(SYSCONFDIR)
install -m 644 $(BUILD_DIR)/genkernel.conf $(DESTDIR)/$(SYSCONFDIR)/