↧
Answer by Daryl Spitzer for How do I modify the dependencies and rules of a...
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)...
View ArticleAnswer by T.E.D. for How do I modify the dependencies and rules of a GNU...
I believe the Right Way to do this is to use something like autoconf.If you want to hack it, try calling uname and putting the result in a symbol. You can then parse out the relevant parts
View ArticleHow do I modify the dependencies and rules of a GNU makefile target depending...
I have a (GNU) makefile with an all target that looks like this:.PHONY: allall: $(unittest++_tests_exe) $(cmockery_tests_exe) @echo Running UnitTest++ tests... @./$(unittest++_tests_exe) @echo Running...
View Article
More Pages to Explore .....