commit:     860d09dc1cf3f08e8ef2caad5b11b19ae6b9fa61
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 23 22:35:48 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jan 23 22:35:48 2016 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=860d09dc

Improve clarity for makefile command.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0a339e3..207f7cf 100644
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,11 @@ distclean: clean
 
 # Generic rules
 %/generated-config: %/arch-config $(BASE_KCONF) merge.pl Makefile
-       grep -sq THIS_CONFIG_IS_BROKEN $< && cat $< >$@ || grep -sq perl 
merge.pl $< $(BASE_KCONF) > $@
+       if grep -sq THIS_CONFIG_IS_BROKEN $< ; then \
+               cat $< >$@ ; \
+       else \
+               perl merge.pl $< $(BASE_KCONF) > $@ ; \
+       fi ;
 
 %.8: doc/%.8.txt doc/asciidoc.conf Makefile genkernel
        a2x --conf-file=doc/asciidoc.conf 
--attribute="genkernelversion=$(PACKAGE_VERSION)" \

Reply via email to