chmod -- is not supported on all platforms.

This commit is contained in:
Bastian Kleineidam 2011-12-16 21:36:01 +01:00
parent 21532a70ec
commit 3c1272fab7

View file

@ -22,11 +22,12 @@ PEP8OPTS:=--repeat --ignore=E211,E501,E225,E301,E302,E241 \
PY2APPOPTS ?=
ifeq ($(shell uname),Darwin)
NUMPROCESSORS:=$(shell sysctl -a | grep machdep.cpu.core_count | cut -d " " -f 2)
CHMODMINUSMINUS:=
else
NUMPROCESSORS:=$(shell grep -c processor /proc/cpuinfo)
CHMODMINUSMINUS:=--
endif
.PHONY: all
all:
@echo "Read the file doc/install.txt to see how to build and install this package."
@ -97,7 +98,7 @@ release: distclean releasecheck dist-stamp sign_distfiles upload
.PHONY: chmod
chmod:
-chmod -R a+rX,u+w,go-w -- *
-chmod -R a+rX,u+w,go-w $(CHMODMINUSMINUS) *
find . -type d -exec chmod 755 {} \;
.PHONY: dist