Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 435 Bytes

make-shell.md

File metadata and controls

22 lines (13 loc) · 435 Bytes

Execute Shell

Back{: .button}

Store the stdout from command into variable

NAME = $(shell echo "mark")

print:
  echo "This is $(NAME)"

Reading compile flags stored in a file

Note: I usually have my compile flags in a file so I can do cc $(< ~/flags), reading this file in make as well makes sure that I don't have to repeat myself writing flags

CXXFLAGS=$(shell cat ~/flags)