prebuild-install:
@rm -rf node_modules/
@rm -rf package-lock.json
@export GIT_BRANCH_NAME=$(git branch | sed --quiet 's/* \(.*\)/\1/p')
/bin/sh: 1: Syntax error: Unterminated quoted string
Makefile:34: recipe for target 'prebuild-install' failed
make: *** [prebuild-install] Error 2
I want to set environment variable by using this command
@export GIT_BRANCH_NAME=$(git branch | sed --quiet 's/* \(.*\)/\1/p')
in Makefile
, but get the error shown above. What is wrong in this command? When I take this line and execute it in terminal all works fine.