It’s the dollar sign, in makefiles you’ll have to type $$
to get a single dollar sign:
M_ARCH := $(shell g++ -dumpmachine | awk '{split($$1,a,"-");print a[1]}')
More Related Contents:
- Can GNU make handle filenames with spaces?
- How to set child process’ environment variable in Makefile
- How to source a script in a Makefile?
- How to assign the output of a command to a Makefile variable
- How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?
- How to use SSH to run a local shell script on a remote machine?
- How to escape os.system() calls?
- What are the uses of the exec command in shell scripts? [closed]
- How can I reverse the order of lines in a file?
- How can I shuffle the lines of a text file on the Unix command line or in a shell script?
- Getting the last argument passed to a shell script
- How to remove carriage return from a variable in shell script
- Using awk with variables
- How does the #! shebang work?
- Shell command to find lines common in two files
- using alias in shell script? [duplicate]
- How to get the second column from command output?
- How to ssh to vagrant without actually running “vagrant ssh”?
- How to check if a process is running inside docker container?
- \r character in shell script
- Make a keybinding to run previous or last shell commands
- How do I prevent root access to my docker container
- How to run a script at the start up of Ubuntu? [closed]
- How to match a single quote in sed
- ${BASH_SOURCE[0]} equivalent in zsh?
- Command not found when comparing string
- Pass groovy variable to shell script
- Awk replace a column with its hash value
- Call a Unix Script from Excel Vba
- In a bash script/command how can I make a PC beep noise, or play a sound file?