reveng Makefile: allow to skip test (e.g. for cross-compilation)

This commit is contained in:
Philippe Teuwen 2020-05-01 00:13:56 +02:00
parent 40c596e8af
commit f158f347e5

View file

@ -22,6 +22,7 @@ MYCLEANOLDPATH = ../../reveng
include ../../../Makefile.host
ifneq ($(SKIPREVENGTEST),1)
CLEAN += bmptst
$(BINDIR)/$(LIB_A): $(BINDIR)/bmptst
@ -31,5 +32,6 @@ $(BINDIR)/bmptst: bmpbit.c config.h reveng.h
$(Q)$(CC) $(CFLAGS) -DBMPTST -o $@ $<
$(info [=] TEST $@)
$(Q)( ./$@ && $(TOUCH) $@ ) || ( $(RM) $@ && $(FALSE) )
endif
.PHONY: all clean