-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile: fix occasional race where we fail to compile tools/tests.
This simplifies the dependencies: 1. Objs depend on headers, not other objs. 2. Programs depend on objs. 3. A .o file will generally implicitly depend on the .c file it's built from. 4. If a file has a build line, it's often better to list all deps there. 5. I spotted some missing 'make clean' files. The particular problem in this case seems to be that make would use tools/test/gen_test.c before it was ready. It's probably confused by the use of recursive make via update-mocks, so explicitly split that into two stages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
- Loading branch information
1 parent
403c054
commit bd2c860
Showing
2 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters