Skip to content

Commit

Permalink
Catch make run without ./configure.
Browse files Browse the repository at this point in the history
I did this too, so fix it.

Reported-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 28, 2014
1 parent 1708a1f commit a7e6ae7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -25,6 +25,11 @@ TEST_GENESIS_NONCE=MarcusArabellAlex

all: $(BINS)

$(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

ccan/config.h: configure
./configure

mkpriv: $(MKPRIV_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MKPRIV_OBJS) $(LDLIBS)

Expand Down Expand Up @@ -77,7 +82,7 @@ TAGS:
etags *.[ch]

distclean: clean
$(RM) genesis.c ecode_names.c
$(RM) genesis.c ecode_names.c ccan/config.h

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

0 comments on commit a7e6ae7

Please sign in to comment.