1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:13:11 +02:00

revert .prepared handling

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3765 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2006-05-11 23:14:04 +00:00
parent a8fa433131
commit fc6fc18695

View File

@ -5,14 +5,18 @@ else
endif endif
define Build/DefaultTargets define Build/DefaultTargets
prepared: FORCE $(DL_DIR)/$(PKG_SOURCE)
ifeq ($(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),.) ifeq ($(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) .),.)
$(PKG_BUILD_DIR)/.prepared: package-clean
endif
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
@-rm -rf $(PKG_BUILD_DIR) @-rm -rf $(PKG_BUILD_DIR)
@mkdir -p $(PKG_BUILD_DIR) @mkdir -p $(PKG_BUILD_DIR)
$(call Build/Prepare) $(call Build/Prepare)
endif touch $$@
$(PKG_BUILD_DIR)/.configured: prepared $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
$(call Build/Configure) $(call Build/Configure)
touch $$@ touch $$@
@ -109,7 +113,7 @@ define BuildPackage
DUMPINFO += \ DUMPINFO += \
echo "@@"; echo "@@";
$$(IDIR_$(1))/CONTROL/control: prepared $$(IDIR_$(1))/CONTROL/control: $(PKG_BUILD_DIR)/.prepared
mkdir -p $$(IDIR_$(1))/CONTROL mkdir -p $$(IDIR_$(1))/CONTROL
echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control echo "Package: $(1)" > $$(IDIR_$(1))/CONTROL/control
echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control
@ -221,17 +225,17 @@ else
$(PACKAGE_DIR): $(PACKAGE_DIR):
mkdir -p $@ mkdir -p $@
source: FORCE $(DL_DIR)/$(PKG_SOURCE) source: $(DL_DIR)/$(PKG_SOURCE)
prepare: FORCE prepared prepare: $(PKG_BUILD_DIR)/.prepared
configure: FORCE $(PKG_BUILD_DIR)/.configured configure: $(PKG_BUILD_DIR)/.configured
compile-targets: FORCE compile-targets:
compile: FORCE compile-targets compile: compile-targets
install-targets: FORCE install-targets:
install: FORCE install-targets install: install-targets
clean-targets: FORCE clean-targets:
clean: FORCE clean: FORCE
@$(MAKE) clean-targets @$(MAKE) clean-targets
rm -rf $(PKG_BUILD_DIR) rm -rf $(PKG_BUILD_DIR)