This will allow to call `make package/<name>/make' to rerun package
Build/Compile thus recompiling changed files. Package should be previously
compiled.
This is very handful especially when using package-version-override.mk or
simply using local files manually with bigger packages.

Signed-off-by: Roman Yeryomin <ro...@advem.lv>

diff --git a/include/package.mk b/include/package.mk
index 37a4a9b..57878db 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -291,3 +291,7 @@ distcheck:

 cleansrc:
     $(Build/Cleansrc)
+
+make:
+    rm -f $(STAMP_BUILT)*
+    $(Build/Compile)
diff --git a/include/subdir.mk b/include/subdir.mk
index 246c8a3..163a6f3 100644
--- a/include/subdir.mk
+++ b/include/subdir.mk
@@ -9,7 +9,7 @@ ifeq ($(MAKECMDGOALS),prereq)
   SUBTARGETS:=prereq
   PREREQ_ONLY:=1
 else
-  SUBTARGETS:=clean download prepare compile install update refresh prereq
dist distcheck configure cleansrc
+  SUBTARGETS:=clean download prepare compile install update refresh prereq
dist distcheck configure cleansrc make
 endif

 subtarget-default = $(filter-out ., \

Attachment: allow-to-re-make-a-package-without-doing-full-clean.patch
Description: Binary data

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to