Skip to contentSkip to conversation

Fix tools makefile to properly check for external tools

PATCH In review Jerone Young 2 participants 3 messages Oct 4, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix tools makefile to properly check for external tools

Fix tools makefile so that extrnal tools checks are run to ensure extrnal tools are actually installed.

tools/Makefile Tue Oct 4 16:28:18 2005 renamed from tools/Makefile Tue Oct 4 17:23:58 2005 +4 -1
diff -r 00037ba13f0b -r cc75d51355cb tools/Makefile
@@ -33,7 +33,7 @@
        done
        $(MAKE) ioemu
 
-install: check
+install: check_install
        @set -e; for subdir in $(SUBDIRS); do \
                $(MAKE) -C $$subdir $@; \
        done
@@ -48,6 +48,9 @@
 check:
        $(MAKE) -C check
 
+check_install:
+       $(MAKE) -C check install
+
 check_clean:
        $(MAKE) -C check clean
 
Signature · 4 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)
#1 lore raw

Ok ,thinking about the comment in tools/check/Makefile is so that one could install stuff in "dist" directory. But our networking scripts have no checks at all to see if (for example) "brctl" is even there...it just silently installs. So given this when would one check that we have everything need installed. Also I will submit a patch to add a check to the network script to see if the tools are actually on the system.

Quoted 28 lines · Jerone Young

Fix tools makefile so that extrnal tools checks are run to ensure extrnal tools are actually installed.

diff -r 00037ba13f0b -r cc75d51355cb tools/Makefile

tools/Makefile Tue Oct 4 16:28:18 2005 renamed from tools/Makefile Tue Oct 4 17:23:58 2005 +4 -1
@@ -33,7 +33,7 @@
        done
        $(MAKE) ioemu
 
-install: check
+install: check_install
        @set -e; for subdir in $(SUBDIRS); do \
                $(MAKE) -C $$subdir $@; \
        done
@@ -48,6 +48,9 @@
 check:
        $(MAKE) -C check
 
+check_install:
+       $(MAKE) -C check install
+
 check_clean:
        $(MAKE) -C check clean
 
Signature · 4 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)
#2 lore raw
Quoted 6 lines · Jerone Young

Ok ,thinking about the comment in tools/check/Makefile is so that one could install stuff in "dist" directory. But our networking scripts have no checks at all to see if (for example) "brctl" is even there...it just silently installs. So given this when would one check that we have everything need installed. Also I will submit a patch to add a check to the network script to see if the tools are actually on the system.

Hi Jerone,

I had a patch that did that a while ago, but the feeling at the time was that it wasn't the right place - it should be in a make check or some top level script (?).

It's not just that script, it's all the rest, too. The con was that somethings you can't roll back from (previous scripts), and so even putting them at the top of each script wasn't sufficient.

thanks,
Nivedita

Quoted 30 lines · Jerone Young
Quoted 29 lines

Fix tools makefile so that extrnal tools checks are run to ensure extrnal tools are actually installed.

diff -r 00037ba13f0b -r cc75d51355cb tools/Makefile

tools/Makefile Tue Oct 4 16:28:18 2005 renamed from tools/Makefile Tue Oct 4 17:23:58 2005 +1 -1
@@ -33,7 +33,7 @@
       done
       $(MAKE) ioemu
 
-install: check
+install: check_install
       @set -e; for subdir in $(SUBDIRS); do \
               $(MAKE) -C $$subdir $@; \
       done
@@ -48,6 +48,9 @@

check:

       $(MAKE) -C check
tools/Makefile Tue Oct 4 16:28:18 2005 renamed from tools/Makefile Tue Oct 4 17:23:58 2005 +3 -0
+check_install:
+       $(MAKE) -C check install
+

check_clean:

       $(MAKE) -C check clean