File: Makefile

package info (click to toggle)
octave-queueing 1.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,288 kB
  • sloc: makefile: 56
file content (62 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
DOC=queueing
CHAPTERS=$(patsubst %.txi, %.texi, $(wildcard *.txi))
FIGS=qn_open_single qn_closed_single qn_web_model web power qn_closed_multi_apl qn_closed_multi_cs
FIGS_EPS=$(FIGS:%=%.eps)
FIGS_PDF=$(FIGS:%=%.pdf)
FIGS_PNG=$(FIGS:%=%.png)
DISTFILES=README INSTALL demo_web.m conf.texi $(DOC).pdf $(DOC).html $(DOC).texi $(CHAPTERS) $(FIGS_PDF) $(FIGS_PNG) $(wildcard *.fig)

.PHONY: clean dist

ALL: html pdf INSTALL

html: $(DOC).html

pdf: $(DOC).pdf

info: $(DOC).info

INSTALL: installation.texi
	-$(MAKEINFO) -D INSTALLONLY \
	  --no-validate --no-headers --no-split --output INSTALL $<

$(DOC).html: $(DOC).texi conf.texi $(CHAPTERS) $(FIGS_PNG)
	-$(MAKEINFO) --html --no-split $(DOC).texi

$(DOC).pdf: $(DOC).texi conf.texi $(CHAPTERS) $(FIGS_PDF)
	texi2pdf  -o $(DOC).pdf $(DOC).texi

$(DOC).info: $(DOC).texi conf.texi $(CHAPTERS)
	-$(MAKEINFO) $(DOC).texi

%.texi: %.txi
	octave-cli -p../inst/ -q munge-texi.m $< ../inst/ > $@

%.png: %.fig
	fig2dev -L png -m 3 $< $@

%.pdf: %.fig
	fig2dev -L pdf $< $@

%.eps: %.fig
	fig2dev -L eps $< $@

web.eps power.eps: demo_web.m
	octave-cli --no-window-system -p../inst/ -q $<
	for i in web.eps power.eps ; do sed -i -e "s:/Title (.*):/Title ($$i):" $$i ; done

%.pdf: %.eps
	epstopdf $<

%.png: %.eps
	convert -density 100 -background white -flatten $< $@

dist: $(DISTFILES)
	ln $(DISTFILES) ../`cat ../fname`/doc/

clean:
	\rm -f *.fns *.pdf *.aux *.log *.dvi *.out *.info *.html *.ky *.tp *.toc *.vr *.cp *.fn *.pg *.op *.au *.aus *.cps x.log *~ DOCSTRINGS INSTALL $(CHAPTERS)

distclean: clean
	\rm -f $(FIGS_PDF) $(FIGS_EPS) $(FIGS_PNG)