About 50 results
Open links in new tab
  1. What do the makefile symbols $@ and $< mean? - Stack Overflow

    30 The Makefile builds the hello executable if any one of main.cpp, hello.cpp, factorial.cpp changed. The smallest possible Makefile to achieve that specification could have been: hello: main.cpp hello.cpp …

  2. What does @: (at symbol colon) mean in a Makefile?

    Dec 22, 2011 · What does the following do in a Makefile? rule: $(deps) @: I can't seem to find this in the make manual.

  3. gnu make - What is the difference between the GNU Makefile variable ...

    The syntax to assign multiline value to a variable is: define VAR_NAME := line line endef or define VAR_NAME = line line endef Assignment operator can be omitted, then it creates a recursively …

  4. What's the difference between := and = in Makefile?

    Feb 2, 2011 · This is an old question but this example helps me understand the difference whenever I forget. Running make with the following Makefile will instantly exit: a = $(shell sleep 3) Running make …

  5. makefile - What do @, - and + do as prefixes to recipe lines in Make ...

    270 In the GNU Makefile manual, it mentions these prefixes. If .ONESHELL is provided, then only the first line of the recipe will be checked for the special prefix characters (‘@’, ‘-’, and ‘+’). What do …

  6. bash - Basic if else statement in Makefile - Stack Overflow

    Oct 29, 2019 · check: # make target ifndef APP_NAME # makefile conditional syntax echo "Empty" # recipe if condition true else # makefile conditional syntax echo "Not empty" # recipe if condition false …

  7. Multi-line bash commands in makefile - Stack Overflow

    Subtle point #2: In the makefile it probably doesn't matter, but the distinction between wrapping with {} and () makes a big difference if you sometimes want to copy the script and run it directly from a shell …

  8. Makefile syntax error near unexpected token - Stack Overflow

    Sep 21, 2023 · Whenever you have problems with makefiles, and particularly when you get shell syntax errors from your recipes, the very first thing you must do is remove the @ prefix from your recipes.

  9. makefile - Make error for ifeq: syntax error near unexpected token ...

    Make error for ifeq: syntax error near unexpected token Asked 15 years, 2 months ago Modified 4 years ago Viewed 48k times

  10. makefile - Can I use ifeq / else if eq / else syntax with any ...

    Apr 20, 2021 · CC=johnsCompiler else CC= endif So is it really just a funky syntax for a case statement, or is each 'else ifeq' independent. I know I can do this: ifeq ($(option), 1) CC=gcc else ifeq …