Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: add install_create_dir target #1604

Closed
keszybz opened this issue Apr 10, 2017 · 1 comment · Fixed by #9344
Closed

RFE: add install_create_dir target #1604

keszybz opened this issue Apr 10, 2017 · 1 comment · Fixed by #9344

Comments

@keszybz
Copy link
Contributor

keszybz commented Apr 10, 2017

Not sure about the name...

Related to #1602, but for empty directories. install_mode should set the mode.
Motivation:

  • no need to manipulate $DESTDIR manually
  • uninstallation
  • easy way to set access mode

Another option would be to extend install_data to support an empty file list (e.g. [] as the positional arg), and add install_dir_mode option. That's probably better than adding another install function.

keszybz added a commit to keszybz/systemd that referenced this issue Apr 10, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 10, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 17, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 19, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 19, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 20, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 21, 2017
keszybz added a commit to keszybz/systemd that referenced this issue Apr 24, 2017
eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 3, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
@eli-schwartz
Copy link
Member

Can you try out #9344?

eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 3, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 4, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 4, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 4, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
eli-schwartz added a commit to eli-schwartz/meson that referenced this issue Oct 5, 2021
This replaces the absolute hack of using

```
install_subdir('nonexisting', install_dir: 'share')
```

which requires you to make sure you don't accidentally or deliberately
have a completely different directory with the same name in your source
tree that is full of files you don't want installed. It also avoids
splitting the name in two and listing them in the wrong order.

You can also set the install mode of each directory component by listing
them one at a time in order, and in fact create nested structures at
all.

Fixes mesonbuild#1604
Properly fixes mesonbuild#2904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants