mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
update-mocks: don't try to regenerate files.
If you do update-mocks in a dirty tree, the recursive make that it uses will try to rebuild things! Suppress that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -13,7 +13,7 @@ START=$(grep -F -n '/* AUTOGENERATED MOCKS START */' "$FILE" | cut -d: -f1)
|
||||
END=$(grep -F -n '/* AUTOGENERATED MOCKS END */' "$FILE" | cut -d: -f1)
|
||||
|
||||
function make_binary() {
|
||||
$MAKE "${FILE/%.c/}" 2> "${BASE}.err" >/dev/null
|
||||
$MAKE SUPPRESS_GENERATION=1 "${FILE/%.c/}" 2> "${BASE}.err" >/dev/null
|
||||
}
|
||||
|
||||
if [ -n "$START" ]; then
|
||||
|
||||
Reference in New Issue
Block a user