Browse Source
Generally a Makefile should control make within that directory. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>pull/2938/head
Rusty Russell
5 years ago
2 changed files with 14 additions and 12 deletions
@ -1,2 +1,15 @@ |
|||
#! /usr/bin/make
|
|||
|
|||
# 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 $(CCAN_OBJS) |
|||
@trap "rm -f $@.tmp.$$$$" EXIT; $(LINK.o) tools/headerversions.o $(CCAN_OBJS) $(LOADLIBES) $(LDLIBS) -o $@.tmp.$$$$ && mv $@.tmp.$$$$ $@ |
|||
|
|||
tools/check-bolt: tools/check-bolt.o $(CCAN_OBJS) common/utils.o |
|||
tools/check-bolt.o: $(CCAN_HEADERS) |
|||
|
|||
clean: |
|||
$(RM) tools/check-bolt tools/*.o |
|||
$(RM) tools/headerversions |
|||
|
|||
include tools/test/Makefile |
|||
|
Loading…
Reference in new issue