X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/6331e0d599b67379c2bee1d584cf42ab94e9fc9e..c87e42acd40e3bf7874571ccc514e3668ec18386:/openwrt/Makefile diff --git a/openwrt/Makefile b/openwrt/Makefile index 43ee3ddba..ae8e59fbe 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -48,8 +48,7 @@ ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) # along with the packages to build for the target. # ############################################################## -TARGETS:=host-sed kernel-headers uclibc-configured binutils gcc uclibc-target-utils -TARGETS+=linux +TARGETS:=host-sed kernel-headers uclibc-configured binutils gcc uclibc-target-utils linux openwrt include toolchain/Makefile.in include package/Makefile.in @@ -83,6 +82,7 @@ TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS)) TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS) + @echo DONE. .PHONY: all world clean dirclean distclean source $(TARGETS) \ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ @@ -118,6 +118,8 @@ $(TARGET_DIR): fi; -find $(TARGET_DIR) -type d -name CVS | xargs rm -rf -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf + -ln -sf /tmp/resolv.conf $(TARGET_DIR)/etc + -mkdir -p $(TARGET_DIR)/jffs source: $(TARGETS_SOURCE) @@ -128,11 +130,11 @@ source: $(TARGETS_SOURCE) ############################################################# clean: rm -rf $(TARGET_DIR) $(IMAGE).* - $(MAKE) $(DIST)-image-clean + $(MAKE) openwrt-image-clean dirclean: $(TARGETS_DIRCLEAN) rm -rf $(TARGET_DIR) $(IMAGE).* - $(MAKE) $(DIST)-image-clean + $(MAKE) openwrt-image-dirclean distclean: clean rm -rf $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) @@ -166,26 +168,40 @@ $(CONFIG)/mconf: fi menuconfig: $(CONFIG)/mconf + -touch .config + -cp .config .config.test @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) config: $(CONFIG)/conf + -touch .config + -cp .config .config.test @$(CONFIG)/conf $(CONFIG_CONFIG_IN) oldconfig: $(CONFIG)/conf + -touch .config + -cp .config .config.test @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) randconfig: $(CONFIG)/conf + -touch .config + -cp .config .config.test @$(CONFIG)/conf -r $(CONFIG_CONFIG_IN) allyesconfig: $(CONFIG)/conf #@$(CONFIG)/conf -y $(CONFIG_CONFIG_IN) #sed -i -e "s/^CONFIG_DEBUG.*/# CONFIG_DEBUG is not set/" .config + -touch .config + -cp .config .config.test @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) allnoconfig: $(CONFIG)/conf + -touch .config + -cp .config .config.test @$(CONFIG)/conf -n $(CONFIG_CONFIG_IN) defconfig: $(CONFIG)/conf + -touch .config + -cp .config .config.test @$(CONFIG)/conf -d $(CONFIG_CONFIG_IN) ############################################################# @@ -203,3 +219,5 @@ endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) .PHONY: dummy subdirs release distclean clean config oldconfig \ menuconfig tags check test depend +targets: + @echo $(TARGETS)