X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fprotocol%2FMakefile.am;h=2c3d7389ed3de7b9d7392a8d45fe708be6de7804;hb=protodoc;hp=6c091f403f709ba045ff66671804279f6b25f05f;hpb=e835214a58a65c93db305157af07d79952fa9e16;p=doldaconnect.git diff --git a/doc/protocol/Makefile.am b/doc/protocol/Makefile.am index 6c091f4..2c3d738 100644 --- a/doc/protocol/Makefile.am +++ b/doc/protocol/Makefile.am @@ -1,23 +1,25 @@ -EXTRA_DIST = cmd protocol.tex +EXTRA_DIST = cmd protocol.tex reqlist.sty .dvi.ps: dvips -o $@ $< -protocol.dvi: protocol.tex commands.tex protocol.1st +protocol.dvi: protocol.tex commands.tex protocol.1st reqlist.sty latex protocol -protocol.1st: protocol.tex commands.tex +protocol.1st: protocol.tex commands.tex reqlist.sty latex protocol touch protocol.1st commands.tex: cmd/*.tex rm -f commands.tex; \ for f in cmd/*.tex; do \ - echo "\\begin{reqspec}{${f%.tex}}" >>commands.tex; \ + cmd="$${f%.tex}"; \ + cmd="$${cmd##*/}"; \ + echo "\\begin{reqspec}{$$cmd}" >>commands.tex; \ cat "$$f" >>commands.tex; \ echo "\\end{reqspec}" >>commands.tex; \ done clean-local: rm -f protocol.aux protocol.log protocol.dvi commands.tex \ - protocol.1st protocol.ps protocol.out + protocol.1st protocol.ps protocol.out protocol.toc