Skip to content

Commit 230d5cd

Browse files
committed
py/mkrules.mk: Define "lib" outside conditional block.
"lib" happened to be defined inside block conditional on $(PROG).
1 parent dcb9044 commit 230d5cd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

py/mkrules.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ ifndef DEBUG
115115
endif
116116
$(Q)$(SIZE) $(PROG)
117117

118-
lib: $(OBJ)
119-
$(AR) rcs libmicropython.a $^
120-
121118
clean: clean-prog
122119
clean-prog:
123120
$(RM) -f $(PROG)
@@ -126,6 +123,9 @@ clean-prog:
126123
.PHONY: clean-prog
127124
endif
128125

126+
lib: $(OBJ)
127+
$(AR) rcs libmicropython.a $^
128+
129129
clean:
130130
$(RM) -rf $(BUILD)
131131
.PHONY: clean

0 commit comments

Comments
 (0)