Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by Omer Dagan for If conditions in a Makefile, inside a target

You can simply use shell commands. If you want to suppres echoing the output, use the "@" sign. For example:

clean:
    @if [ "test" = "test" ]; then\
        echo "Hello world";\
    fi

Note that the closing ";" and "\" are necessary.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>