summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-01 14:37:52 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-10-01 14:37:52 +0000
commit97f295ba9c4822cea558f23f4ffe2153e231da2f (patch)
treec4f80c8ff6e1970deee8adef30ebc125904ffa59 /doc
parent2c49741f88ea0010cfd4d657e818a951443505a0 (diff)
downloadtelepathy-farstream-97f295ba9c4822cea558f23f4ffe2153e231da2f.tar.gz
Don't copy around sequence.pic if srcdir == builddir.
For the record, this batch of doc/ changes are to fix fd.o #11818. 20071001143752-53eee-6e8a8cd8efa14cf8ca17ccb35b6682bdf7a484e6.gz
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 677d219..afe76d5 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -11,7 +11,12 @@ all-local: $(SEQ_DIA_PNGS)
# pic2plot wants sequence.pic in the build dir, so use a hack - copy it in
%.png: %.pic sequence.pic
- cp $(srcdir)/sequence.pic .
+ if ! test -e sequence.pic; then \
+ touch copied-sequence-pic && \
+ cp $(srcdir)/sequence.pic .; \
+ fi
set -o pipefail; $(PIC2PLOT) -Tps --font-name AvantGarde-Book $< | $(CONVERT) -density 112 - $@ ; rm .sequence.temp
- rm -f sequence.pic
+ if test -e copied-sequence-pic; then \
+ rm -f copied-sequence-pic sequence.pic; \
+ fi
endif