-commands.tex: cmds/*.tex
- rm -f commands.tex \
- for f in cmds/*.tex; do \
- echo "\\begin{reqspec}{${f%.tex}}" >>commands.tex; \
- cat "$f" >>commands.tex; \
+commands.tex: cmd/*.tex
+ rm -f commands.tex; \
+ for f in cmd/*.tex; do \
+ cmd="$${f%.tex}"; \
+ cmd="$${cmd##*/}"; \
+ echo "\\begin{reqspec}{$$cmd}" >>commands.tex; \
+ cat "$$f" >>commands.tex; \