Fix bad example

This commit is contained in:
Joshua Boniface 2022-12-03 01:50:21 -05:00
parent 2eabd6e748
commit e267456952
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ override_dh_auto_clean:
dh $@
```
Because that first `cd` runs in its own shell context, the next line (`rm -r out`) is actually relative to the base directory, *not* the `artifacts/out/` directory! You can work around this by putting everything on one line like so:
Because that first `cd artifacts/out/` runs in its own shell context, the next line (`rm -f $(MY_FILE)`), in another context, is actually relative to the base directory, *not* the `artifacts/out/` directory! You can work around this by putting both commands on one line with a command separator (e.g. `&&` or `;`) like so:
```
override_dh_auto_clean: