diff --git a/py/mkrules.mk b/py/mkrules.mk index 3ed4afec19..b11a886f33 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -115,9 +115,6 @@ ifndef DEBUG endif $(Q)$(SIZE) $(PROG) -lib: $(OBJ) - $(AR) rcs libmicropython.a $^ - clean: clean-prog clean-prog: $(RM) -f $(PROG) @@ -126,6 +123,9 @@ clean-prog: .PHONY: clean-prog endif +lib: $(OBJ) + $(AR) rcs libmicropython.a $^ + clean: $(RM) -rf $(BUILD) .PHONY: clean