Skip to content

Commit 80d76e7

Browse files
Fix build in shadow builds: need to mkdir bin and lib
Signed-off-by: Thiago Macieira <[email protected]>
1 parent 2921240 commit 80d76e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ configure: .config
105105
.config: Makefile.configure
106106
$(MAKE) -f $(SRCDIR)Makefile.configure OUT='>&9' configure 9> $@
107107

108-
lib bin:
109-
$(MKDIR) $@
110-
111-
lib/libtinycbor.a: $(TINYCBOR_SOURCES:.c=.o) | lib
108+
lib/libtinycbor.a: $(TINYCBOR_SOURCES:.c=.o)
109+
@$(MKDIR) -p lib
112110
$(AR) cqs $@ $^
113111

114-
bin/cbordump: $(CBORDUMP_SOURCES:.c=.o) lib/libtinycbor.a | bin
112+
bin/cbordump: $(CBORDUMP_SOURCES:.c=.o) lib/libtinycbor.a
113+
@$(MKDIR) -p bin
115114
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) -lm
116115

117-
bin/json2cbor: $(JSON2CBOR_SOURCES:.c=.o) lib/libtinycbor.a | bin
116+
bin/json2cbor: $(JSON2CBOR_SOURCES:.c=.o) lib/libtinycbor.a
117+
@$(MKDIR) -p bin
118118
$(CC) -o $@ $(LDFLAGS) $(LDFLAGS_CJSON) $^ $(LDLIBS) -lm
119119

120120
tinycbor.pc: tinycbor.pc.in

0 commit comments

Comments
 (0)