]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Simplify Makefile
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 10 Oct 2015 15:20:44 +0000 (17:20 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 10 Oct 2015 15:20:44 +0000 (17:20 +0200)
Makefile

index c23f7b69ec3d7608122f1b4c247b5a9837b4ca83..9db9415fb3d4dcad7acc0afe34da97624449d77a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -131,27 +131,27 @@ distclean_buildroot:
 
 .PHONY: parse_kconfig
 parse_kconfig:
-       @if [ `$(MAKE) -C scripts/parse_kconfig/ -q; echo $$?` != "0" ]; then \
+       @if ! $(MAKE) -C scripts/parse_kconfig/ -q; then \
        $(MAKE) -C scripts/parse_kconfig/; fi
 
 .PHONY: write_config
 write_config:
-       @if [ `$(MAKE) -C scripts/write_config/ -q; echo $$?` != "0" ]; then \
+       @if ! $(MAKE) -C scripts/write_config/ -q; then \
        $(MAKE) -C scripts/write_config/; fi
 
 .PHONY:allconfig
 allconfig:
-       @if [ `$(MAKE) -C scripts/allconfig/ -q; echo $$?` != "0" ]; then \
+       @if ! $(MAKE) -C scripts/allconfig/ -q; then \
        $(MAKE) -C scripts/allconfig/; fi
 
 .PHONY: picosat
 picosat:
        @if [ ! -e scripts/picosat-959/makefile ]; then \
        cd scripts/picosat-959 && ./configure; fi
-       @if [ `$(MAKE) -C scripts/picosat-959 -q; echo $$?` != "0" ]; then \
+       @if ! $(MAKE) -C scripts/picosat-959 -q; then \
        $(MAKE) -C scripts/picosat-959; fi
 
 .PHONY: initram_cyclictest
 initram_cyclictest:
-       @if [ `$(MAKE) -C tests/cyclictest/root/ -q; echo $$?` != "0" ]; then \
+       @if ! $(MAKE) -C tests/cyclictest/root/ -q; then \
        $(MAKE) -C scripts/cyclictest/root/; fi