From 2e0c6c2b8ab2000bb367363df697ce2150ef5ddb Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Sat, 16 Mar 2024 01:06:24 +0100 Subject: [PATCH] makefilemagic --- include/package-pack.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/package-pack.mk b/include/package-pack.mk index 2ca6cf65902916..766aab63c4f7aa 100644 --- a/include/package-pack.mk +++ b/include/package-pack.mk @@ -208,11 +208,11 @@ $(_endef) $$(PACK_$(1)) : export PATH=$$(TARGET_PATH_PKG) $$(PACK_$(1)) : export PKG_SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH) $(PKG_INFO_DIR)/$(1).provides $$(PACK_$(1)): $(STAMP_BUILT) $(INCLUDE_DIR)/package-pack.mk - rm -rf $$(IDIR_$(1)); \ -ifneq ($$(CONFIG_USE_APK),) - $$(call remove_ipkg_files,$(1),$$(call opkg_package_files,$(call gen_ipkg_wildcard,$(1)))) + rm -rf $$(IDIR_$(1)); +ifeq ($$(CONFIG_USE_APK),) + $$(call remove_ipkg_files,$(1),$$(call opkg_package_files,$(call gen_ipkg_wildcard,$(1)))) else - $$(call remove_ipkg_files,$(1),$$(call apk_package_files,$(call gen_ipkg_wildcard,$(1)))) + $$(call remove_ipkg_files,$(1),$$(call apk_package_files,$(call gen_ipkg_wildcard,$(1)))) endif mkdir -p $(PACKAGE_DIR) $$(IDIR_$(1)) $(PKG_INFO_DIR) $(call Package/$(1)/install,$$(IDIR_$(1))) @@ -334,7 +334,7 @@ endif @[ -f $$(PACK_$(1)) ] $(1)-clean: -ifneq ($(CONFIG_USE_APK),) +ifeq ($(CONFIG_USE_APK),) $$(call remove_ipkg_files,$(1),$$(call opkg_package_files,$(call gen_ipkg_wildcard,$(1)))) else $$(call remove_ipkg_files,$(1),$$(call apk_package_files,$(call gen_ipkg_wildcard,$(1))))