On Fri, 3 May 2013 18:26, Bernhard Voelker
On 05/03/2013 05:16 PM, Michal Kubeček wrote:
IMHO the problem rather is that now there isn't any matching file while before there was at least one. [snip] Given Matwey's Makefile rule ...
for file in *.ctx; \ do (cd $(CTXDIR); $(LN) ../applic/$$PCK/etc/$$file $$file;) \ done
Constuct fails due to wrong / changed glob options in shell, or "missing file" handling in "ln", please add test for $file: for file in *.ctx; do test -e "$file" && \ (cd $(CTXDIR); $(LN) ../applic/$$PCK/etc/$$file $$file;) \ done Maybe 'test -s "$file"' would be even better. "make" (here most likely GNU make) and shell opts like each other similar to cats and dogs. Such traps are hell to find, and easy to create. - Yamaban.