OSDN Git Service

Add -p option for mkdir to suppress error.
authorconao3 <conao3@gmail.com>
Sat, 8 Jun 2019 16:52:05 +0000 (01:52 +0900)
committerconao3 <conao3@gmail.com>
Sat, 8 Jun 2019 16:52:05 +0000 (01:52 +0900)
commit9ccff5975bec7963e591e042e1ab1139252a4dc9
treedd21f3a8e65cb2365027cbe930e47abf04d80a78
parentb17db8aeb211cc16c52b9edf2069889fb640f04c
Add -p option for mkdir to suppress error.

Compiling nkf in Docker, error occur and ignored by make.
https://github.com/conao3/docker-nkf

```
Step 6/13 : RUN git clone https://github.com/nurse/nkf.git
 ---> Using cache
 ---> 1f18636e4d38
Step 7/13 : WORKDIR nkf
 ---> Using cache
 ---> e0210ecbf6aa
Step 8/13 : RUN make
 ---> Using cache
 ---> 62e20c0b3115
Step 9/13 : RUN make install
 ---> Running in 79714e0da6e0
mkdir: can't create directory '/usr/local/bin': File exists
make: [Makefile:49: install-main] Error 1 (ignored)
```

mkdir has option -p and it suppress error if directory
has existed.

```
-p, --parents
    no error if existing, make parent directories as needed
```
Makefile