bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tail call elimination


From: Pete Dietl
Subject: Re: Tail call elimination
Date: Mon, 18 May 2020 13:29:07 -0500

Yeah I was thinking something like:

VERSION     := 1.3.0
OLD_VERSION := 1.2.0

EMPTY :=
SPACE := $(EMPTY) $(EMPTY)

ver_is_less_than = $(strip \
    $(let \
        ( \
            (major1 $(word 1,$(subst .,$(SPACE),$1))) \
            (minor1 $(word 2, ...)) ... \
        ) \
        $(if $(expr $(major1) <= $(major2) \
            1, \
            $(if $(expr $(minor1) < $(minor2) ...))))))

ifneq ($(call ver_is_less,$(VERSION),$(OLD_VERSION)),)
    ...
endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]