Skip to content

Commit

Permalink
Makefile: add dependency to fix parallel build.
Browse files Browse the repository at this point in the history
```
cc tools/headerversions.c
tools/headerversions.c:3:10: fatal error: 'config.h' file not found
#include "config.h"
         ^~~~~~~~~~
yes
1 error generated.
make: *** [Makefile:299: tools/headerversions.o] Error 1
```

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Jun 29, 2023
1 parent 618f366 commit 4853cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TOOLS_COMMON_OBJS = common/utils.o

# We force make to relink this every time, to detect version changes.
# Do it atomically, otherwise parallel builds can get upset!
tools/headerversions: $(FORCE) tools/headerversions.o libccan.a
tools/headerversions: $(FORCE) tools/headerversions.o libccan.a ccan/config.h
@trap "rm -f $@.tmp.$$$$" EXIT; $(LINK.o) tools/headerversions.o libccan.a $(LOADLIBES) $(LDLIBS) -o $@.tmp.$$$$ && mv $@.tmp.$$$$ $@

tools/check-bolt: tools/check-bolt.o $(TOOLS_COMMON_OBJS)
Expand Down

0 comments on commit 4853cb6

Please sign in to comment.