Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by Daryl Spitzer for How do I modify the dependencies and rules of a GNU makefile target depending upon the platform (Linux vs. OS X)?

T.E.D.'s answer triggered me to come up with the following:

ifeq ($(uname),Linux)cmockery_tests_exe = cmockery_testselsecmockery_tests_exe = $()endif.PHONY: allall: $(unittest++_tests_exe) $(cmockery_tests_exe) @echo Running UnitTest++ tests... @./$(unittest++_tests_exe)ifeq ($(uname),Linux) @echo Running Cmockery tests... @./$(cmockery_tests_exe)endif

It seems to work, but I welcome your suggestions.


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>