CI: tool compilation: clean before building
This commit is contained in:
parent
cfb895923a
commit
3933fd30df
@ -34,14 +34,16 @@ all: clean summary
|
||||
tools.testlog:
|
||||
@echo -n Building tool: $(basename $@)
|
||||
@printf "%-32s" "$@" > $@
|
||||
@$(MAKE) -C $(TOOLSDIR) > /dev/null && \
|
||||
@$(MAKE) -C $(TOOLSDIR) clean > /dev/null && \
|
||||
$(MAKE) -C $(TOOLSDIR) > /dev/null && \
|
||||
(echo " -> OK" && echo "TEST OK" >> $@) || \
|
||||
(echo " -> FAIL" && echo "TEST FAIL" >> $@)
|
||||
|
||||
%.testlog:
|
||||
@echo -n Building tool: $(basename $@)
|
||||
@printf "%-32s" "$@" > $@
|
||||
@$(MAKE) -C $(TOOLSDIR)/$(basename $@) > /dev/null && \
|
||||
@$(MAKE) -C $(TOOLSDIR)/$(basename $@) clean > /dev/null && \
|
||||
$(MAKE) -C $(TOOLSDIR)/$(basename $@) > /dev/null && \
|
||||
(echo " -> OK" && echo "TEST OK" >> $@) || \
|
||||
(echo " -> FAIL" && echo "TEST FAIL" >> $@)
|
||||
|
||||
|
@ -3,6 +3,8 @@ all: tunslip6
|
||||
CFLAGS += -Wall -Werror
|
||||
|
||||
tunslip6: tools-utils.c tunslip6.c
|
||||
clean:
|
||||
rm -f *.o tunslip6
|
||||
|
||||
gitclean:
|
||||
@git clean -d -x -n ..
|
||||
|
@ -25,3 +25,6 @@ CFLAGS += -Wall -Werror
|
||||
|
||||
$(SERIALDUMP): serialdump.c
|
||||
$(CC) -O2 -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f $(SERIALDUMP)
|
||||
|
Loading…
Reference in New Issue
Block a user