X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/947ca6f4e8cf3e67ce50d0af0f669e1099d6ea8c..c3360bcbb3ee920a86c38de88b355bdbfd70de92:/package/Makefile?ds=sidebyside diff --git a/package/Makefile b/package/Makefile index 9b8f87292..64c78de5e 100644 --- a/package/Makefile +++ b/package/Makefile @@ -22,12 +22,17 @@ INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y)) $(STAMP_DIR) $(TARGET_DIR): mkdir -p $@ -%-prereq %-download %-clean %-compile %-install: FORCE +ifeq ($(QUIET),1) +%-compile %-install: FORCE + $(MAKE) -C $* $(patsubst $*-%,%,$@) || { $(call MESSAGE, "*** $* $(patsubst $*-%,%,$@) failed"); false; } + +%-prepare %-prereq %-download %-clean: FORCE +else +%-prepare %-prereq %-download %-clean %-compile %-install: FORCE +endif $(MAKE) -C $* $(patsubst $*-%,%,$@) -%-prereq: $(STAMP_DIR) $(TARGET_DIR) -%-prepare: $(TARGET_DIR) -%-compile: %-prepare +# .IGNORE: $(COMPILE_PACKAGES) $(TMP_DIR)/.packagedeps: $(TMP_DIR)/.packageinfo @$(TOPDIR)/scripts/metadata.pl package_mk < $< > $@ || rm -f $@ @@ -46,6 +51,7 @@ install: @if [ -d $(TOPDIR)/files ]; then \ $(CP) $(TOPDIR)/files/. $(BUILD_DIR)/root; \ fi + @mkdir -p $(BUILD_DIR)/root/etc/rc.d @( \ cd $(BUILD_DIR)/root; \ for script in ./etc/init.d/*; do \ @@ -53,6 +59,9 @@ install: IPKG_INSTROOT=$(BUILD_DIR)/root $(which bash) ./etc/rc.common $$script enable; \ done || true \ ) + @-find $(BUILD_DIR)/root -name CVS | $(XARGS) rm -rf + @-find $(BUILD_DIR)/root -name .svn | $(XARGS) rm -rf + @-find $(BUILD_DIR)/root -name '.#*' | $(XARGS) rm -f index: $(PACKAGE_DIR)/Packages