endif
define Build/DefaultTargets
- ifeq ($(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),.)
- $(PKG_BUILD_DIR)/.prepared: package-clean
- endif
+ ifeq ($(DUMP),)
+ ifeq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) . | tee /tmp/xy1),.)
+ $(PKG_BUILD_DIR)/.prepared: package-clean
+ endif
- ifneq ($(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg $(IPKG_$(1)) $(PKG_BUILD_DIR)),$(IPKG_$(1)))
- $(PKG_BUILD_DIR)/.built: package-rebuild
+ ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p -x ipkg $(IPKG_$(1)) $(PKG_BUILD_DIR) | tee /tmp/xy2),$(IPKG_$(1)))
+ $(PKG_BUILD_DIR)/.built: package-rebuild
+ endif
endif
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
DUMPINFO += \
echo "@@";
+ ifneq ($(CONFIG),)
+ DUMPINFO += \
+ echo "Config: $(CONFIG)" | sed -e 's,\\,\n,g'; \
+ echo "@@";
+ endif
+
$$(IDIR_$(1))/CONTROL/control: $(PKG_BUILD_DIR)/.prepared
mkdir -p $$(IDIR_$(1))/CONTROL
echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control
--infodir=/usr/info \
$(DISABLE_NLS) \
$(1); \
+ true; \
)
endef
PREFIX="$$(IDIR_$(1))" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
ARCH="$(ARCH)" \
- DESTDIR="$$(IDIR_$(1))"
+ DESTDIR="$$(IDIR_$(1))" \
+ $(1);
endef
define Build/Compile
- $(call Build/Compile/Default)
+ $(call Build/Compile/Default,)
endef
define Build/Clean
endef
ifneq ($(DUMP),)
- dumpinfo:
- $(DUMPINFO)
+ dumpinfo: FORCE
+ @$(DUMPINFO)
else
$(PACKAGE_DIR):
@$(MAKE) clean-targets
rm -rf $(PKG_BUILD_DIR)
endif
-
-.PHONY: FORCE
-FORCE: