build: don't use -s flag for `which`
authorKevin Bullock <kbullock@ringworld.org>
Fri, 29 Aug 2014 12:06:31 +0200
changeset 22308 246b6a9c8d8f
parent 22307 63ed188e3fc7
child 22309 a65697c3f20e
build: don't use -s flag for `which` `which -s` is a BSDism that doesn't exist on other versions of `which`. That means that even on Mac OS X, `make osx` breaks if you have another utils package installed (e.g. debianutils installed thru fink). Redirect output to /dev/null instead.
Makefile
--- a/Makefile	Fri Aug 29 17:15:49 2014 +0200
+++ b/Makefile	Fri Aug 29 12:06:31 2014 +0200
@@ -135,7 +135,7 @@
 # Packaging targets
 
 osx:
-	@which -s bdist_mpkg || \
+	@which bdist_mpkg >/dev/null || \
 	   (echo "Missing bdist_mpkg (easy_install bdist_mpkg)"; false)
 	bdist_mpkg setup.py
 	mkdir -p packages/osx