Quantcast
Channel: If conditions in a Makefile, inside a target - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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...

View Article


Answer by Beta for If conditions in a Makefile, inside a target

There are several problems here, so I'll start with my usual high-level advice: Start small and simple, add complexity a little at a time, test at every step, and never add to code that doesn't work....

View Article


If conditions in a Makefile, inside a target

I'm trying to setup a Makefile that will search and copy some files (if-else condition) and I can't figure out what exactly is wrong with it? (thou I'm pretty sure it's because a combination of...

View Article
Browsing latest articles
Browse All 3 View Live


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