mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-30 20:50:27 +00:00
chmod -- is not supported on all platforms.
This commit is contained in:
parent
21532a70ec
commit
3c1272fab7
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue