Code

"test" in Solaris' /bin/sh does not support -e
authorDennis Stosberg <dennis@stosberg.net>
Mon, 26 Jun 2006 08:27:54 +0000 (10:27 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 3 Jul 2006 00:14:42 +0000 (17:14 -0700)
Running "make clean" currently fails:
  [ ! -e perl/Makefile ] || make -C perl/ clean
  /bin/sh: test: argument expected
  make: *** [clean] Error 1

Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile

index 9b9be592ae4e7b54762708918adcca5f30395ec6..13411eafdcf90e7360fe81e010804c656ccc46e9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -755,7 +755,7 @@ clean:
        rm -f $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
        rm -f $(htmldocs).tar.gz $(manpages).tar.gz
        $(MAKE) -C Documentation/ clean
-       [ ! -e perl/Makefile ] || $(MAKE) -C perl/ clean || $(MAKE) -C perl/ clean
+       [ ! -f perl/Makefile ] || $(MAKE) -C perl/ clean || $(MAKE) -C perl/ clean
        $(MAKE) -C templates/ clean
        $(MAKE) -C t/ clean
        rm -f GIT-VERSION-FILE GIT-CFLAGS