Skip to content

Commit a7e6ae7

Browse files
committedJul 28, 2014
Catch make run without ./configure.
I did this too, so fix it. Reported-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 1708a1f commit a7e6ae7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ TEST_GENESIS_NONCE=MarcusArabellAlex
2525

2626
all: $(BINS)
2727

28+
$(PETTYCOIN_OBJS) $(PETTYCOIN_GENERATE_OBJS) $(MKGENESIS_OBJS) $(SIZES_OBJS) $(MKPRIV_OBJS) $(PETTYCOIN_TX_OBJS) $(PETTYCOIN_QUERY_OBJS) $(PETTY_ADDR_OBJS) $(PETTYCOIN_GATEWAY_OBJS) $(CCAN_OBJS): ccan/config.h
29+
30+
ccan/config.h: configure
31+
./configure
32+
2833
mkpriv: $(MKPRIV_OBJS)
2934
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MKPRIV_OBJS) $(LDLIBS)
3035

@@ -77,7 +82,7 @@ TAGS:
7782
etags *.[ch]
7883

7984
distclean: clean
80-
$(RM) genesis.c ecode_names.c
85+
$(RM) genesis.c ecode_names.c ccan/config.h
8186

8287
ccan-asort.o: $(CCANDIR)/ccan/asort/asort.c
8388
$(CC) $(CFLAGS) -c -o $@ $<

0 commit comments

Comments
 (0)
Please sign in to comment.