@@ -203,7 +203,7 @@ You can include additional files that are not normally installed inside site-pac
203
203
[tool .pdm .build .wheel-data ]
204
204
# Install all files under scripts/ to the $prefix/bin directory.
205
205
scripts = [" scripts/*" ]
206
- # Install all *.h files under headers/ (recursively) to the $prefix/include directory,
206
+ # Recursively install all *.h files from headers/ to the $prefix/include directory,
207
207
# flattening all files into one directory:
208
208
# headers/folder1/file1.h -> $prefix/include/file1.h
209
209
# headers/folder2/file2.h -> $prefix/include/file2.h
@@ -225,17 +225,17 @@ Advanced examples:
225
225
226
226
``` toml
227
227
[tool .pdm .build .wheel-data ]
228
- # Install all *.h files under headers/ (recursively) to the $prefix/include directory,
229
- # keeping the directory structure (thanks to relative-to).
228
+ # Recursively install all *.h files under headers/ to the $prefix/include directory,
229
+ # while preserving the directory structure (thanks to relative-to).
230
230
# We make the destination paths relative to "headers"
231
231
# so that "headers" does not appear in the destination paths:
232
232
# headers/folder1/file1.h -> $prefix/include/folder1/file1.h
233
233
include = [{path = " headers/**/*.h" , relative-to = " headers/" }]
234
- # Install all files under share/ (recursively) to the $prefix/data directory,
235
- # keeping the directory structure (thanks to relative-to).
234
+ # Recursively install all files from share/ to the $prefix/data directory,
235
+ # while preserving the directory structure (thanks to relative-to).
236
236
# We make the destination paths relative to "."
237
237
# to preserve the exact same directory structure in the destination:
238
- # share/man/man1/project.1 -> $prefix/data/ share/man/man1/project.1
238
+ # share/man/man1/project.1 -> $prefix/share/man/man1/project.1
239
239
data = [{path = " share/**/*" , relative-to = " ." }]
240
240
```
241
241
0 commit comments