...

Text file src/github.com/datawire/ambassador/v2/build-aux/prelude_str.mk

Documentation: github.com/datawire/ambassador/v2/build-aux

     1# This is part of `prelude.mk`, split out for organizational purposes.
     2# !!! NOTHING EAGER IS ALLOWED TO HAPPEN IN THIS FILE !!!
     3
     4#
     5# String support
     6
     7# NOTE: this is not a typo, this is actually how you spell newline in Make
     8define NL
     9
    10
    11endef
    12export NL
    13
    14# NOTE: this is not a typo, this is actually how you spell space in Make
    15define SPACE
    16 
    17endef
    18
    19COMMA = ,
    20
    21# Usage: $(call str.eq,STR1,STR2)
    22# Evaluates to either $(TRUE) or $(FALSE)
    23str.eq = $(if $(subst x$1,,x$2)$(subst x$2,,x$1),$(FALSE),$(TRUE))

View as plain text