summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: afe76d502323e72ef62614a07f0c52d90b4e7ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CLEANFILES =
EXTRA_DIST = make-call.pic sequence.pic

if MAKE_SEQ_DIAS

SEQ_DIA_PICS = make-call.pic
SEQ_DIA_PNGS = $(patsubst %.pic,%.png,$(SEQ_DIA_PICS))
CLEANFILES += $(SEQ_DIA_PNGS) log.sh test

all-local: $(SEQ_DIA_PNGS)

# pic2plot wants sequence.pic in the build dir, so use a hack - copy it in
%.png: %.pic 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
	if test -e copied-sequence-pic; then \
		rm -f copied-sequence-pic sequence.pic; \
	fi
endif