[kernel] Make 'make local' do something helpful

Kyle McMartin kyle at fedoraproject.org
Wed Oct 26 18:48:38 UTC 2011


commit 76f169673caa73b98a1f5c10a6065885d36d5dce
Author: Kyle McMartin <kyle at redhat.com>
Date:   Wed Oct 26 14:38:50 2011 -0400

    Make 'make local' do something helpful

 Makefile |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/Makefile b/Makefile
index 39f97b5..0a581e0 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,13 @@ include Makefile.config
 prep:
 	fedpkg -v prep --arch=$(PREPARCH)
 
+noarch:
+	fedpkg -v local --arch=noarch
+
+# 'make local' also needs to build the noarch firmware package
+local: noarch
+	fedpkg -v local
+
 extremedebug:
 	@perl -pi -e 's/# CONFIG_DEBUG_PAGEALLOC is not set/CONFIG_DEBUG_PAGEALLOC=y/' config-nodebug
 
@@ -109,9 +116,6 @@ include Makefile.release
 unused-kernel-patches:
 	@for f in *.patch; do if [ -e $$f ]; then (egrep -q "^Patch[[:digit:]]+:[[:space:]]+$$f" $(SPECFILE) || echo "Unused:    $$f") && egrep -q "^ApplyPatch[[:space:]]+$$f|^ApplyOptionalPatch[[:space:]]+$$f" $(SPECFILE) || echo "Unapplied: $$f"; fi; done
 
-# 'make local' also needs to build the noarch firmware package
-local: noarch
-
 #
 # Hacks for building vanilla (unpatched) kernel rpms.
 # Use "make vanilla-TARGET" like "make TARGET" (make vanilla-scratch-build).


More information about the scm-commits mailing list