I have the following recipe:
ZS_FPATH := $(filter-out %.awk %.py %.sed, $(wildcard src/*))
compile: ${ZS_FPATH}
mkdir -p ${PACKAGE_NAME}/bin
zsh -c "zcompile -Uz ${PACKAGE_NAME}/bin/${PACKAGE_NAME} ${ZS_FPATH}"
mkdir -p ${PACKAGE_NAME}/etc
:> ${PACKAGE_NAME}/etc/zsfnames.lst
while IFS="" read -r zsfpath || [ -n "${zsfpath}" ]; do
basename $${zsfpath} >> ${PACKAGE_NAME}/etc/zsfnames.lst;
done < "${ZS_FPATH}"
.PHONY: compile
# ------------------------------------------------------------------------------
When I run the target “compile”, the following error is returned:
mkdir -p utk/bin
zsh -c "zcompile -Uz utk/bin/utk src/bckpfile src/echopath src/tievalue"
mkdir -p utk/etc
:> utk/etc/zsfnames.lst
while IFS="" read -r zsfpath || [ -n "" ]; do
/bin/sh: -c: line 2: syntax error: unexpected end of file
make: *** [Makefile:63: compile] Error 2
I’m using tabs for spacing with tabstop=2 in neovim. I’ve also tried vs code without success. Could someone point out the problem with the snippet?