Makefile - Why is the read command not reading the user input?
By : saikrishna
Date : March 29 2020, 07:55 AM
|
Makefile multiline dash command run executable in a detached process
By : Peter
Date : March 29 2020, 07:55 AM
like below fixes the issue The important thing to remember here is that your line breaks don't actually exist when the shell sees the command. So your first command becomes: code :
$(ENV_VARS) python -m SimpleHTTPServer $(TEST_PORT); PID=$$(lsof -t -i @localhost:$(TEST_PORT) -sTCP:listen); echo $(PID); if [ -n "$$PID" ]; then python test.py; fi; function finish { if [ -n "$$PID" ]; then kill -9 $$PID; fi } trap finish EXIT;
PID=$$(lsof -t -i @localhost:$(TEST_PORT) -sTCP:listen); if [ -n "$$PID" ]; then $(ENV_VARS) python test.py; fi function finish { if [ -n "$$PID" ]; then kill -9 $$PID; fi } echo $$PID; trap finish EXIT;
|
Read command is parsing multiline input
By : user1555586
Date : March 29 2020, 07:55 AM
|
Makefile multiline command does not work in Docker properly
By : sridhar s
Date : March 29 2020, 07:55 AM
I wish this helpful for you Unfortunately you have been misled by your "obvious" conclusion Obviously, make somehow tries sed earlier than HTML is done :) That's not at all what the problem is. Review your error message more carefully: code :
sed: can't read : No such file or directory
sed -i '' -e '/href="./s/\.md/\.html/g' /project/docs/changelog.html
-i[SUFFIX], --in-place[=SUFFIX]
edit files in place (makes backup if SUFFIX supplied)
sed -i'' -e '/href="./s/\.md/\.html/g' $@
sed --in-place= -e '/href="./s/\.md/\.html/g' $@
|
Makefile call itself with identical command line input except prepended string
By : Daniel Baptista
Date : March 29 2020, 07:55 AM
|