From: Ben Gras Date: Mon, 20 Jun 2005 13:30:24 +0000 (+0000) Subject: Fix for gzip make clean if Makefile doesn't exist.. X-Git-Tag: v3.1.0~721 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch03.html?a=commitdiff_plain;h=c0f83b40335ae34b90601f32fde4fa4ff4ee4ca4;p=minix.git Fix for gzip make clean if Makefile doesn't exist.. --- diff --git a/commands/Makefile b/commands/Makefile index 6cde82500..ec0c53788 100755 --- a/commands/Makefile +++ b/commands/Makefile @@ -1,6 +1,7 @@ # Makefile for commands. MAKE = exec make -$(MAKEFLAGS) +GZIP=gzip-1.2.4 usage: @echo "Usage: make all # Compile all commands" >&2 @@ -8,11 +9,11 @@ usage: @echo " make clean # Delete .o files and other junk" >&2 @false -all:: - cd gzip-1.2.4 && ./configure --prefix=/usr && make +all install:: + cd $(GZIP) && ./configure --prefix=/usr && make $@ -install clean:: - cd gzip-1.2.4 && make $@ +clean:: + if [ -f $(GZIP)/Makefile] ; then cd $(GZIP) && make $@; fi all install clean:: cd `arch` && $(MAKE) $@