summaryrefslogtreecommitdiffstats
path: root/scilab_doc/signal/Makefile
blob: 6ce186b3fd31fe86a343901183c693c5476f5066 (plain)
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
SHELL = /bin/sh

include ../../Version.incl
SCIDIR=../..
SCIDOC=$(SCIDIR)/../$(SCIVERSION)/doc
include ../../Makefile.incl

TEXFILES = bibli.tex chap0.tex chap1.tex chap2.tex chap3.tex chap4.tex \
	chap5.tex chap6.tex chap7.tex chap8.tex chap9.tex

all:: $(SCIDOC)/Signal.ps

$(SCIDOC)/Signal.ps: subs $(TEXFILES)
	latex Toolbox
	latex Toolbox
	makeindex -s Toolbox.isty Toolbox
	latex Toolbox
	$(RM) $(SCIDOC)/Signal.ps
	dvips -o $(SCIDOC)/Signal.ps Toolbox.dvi

clean::
	$(RM) *.aux *.log  *.dvi *.ind *.idx *.ilg *.lof *.lot *.toc \
	Toolbox_pdf.* *.tmp Signal_pdf.ps
distclean::
	$(RM) *.aux *.log  *.dvi *.ind *.idx *.ilg *.lof *.lot *.toc \
	Toolbox_pdf.* *.tmp Signal_pdf.ps

SUBDIRS = Nsource_diary Nfigs_source

subs:
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "making" subs "in signal/$$i..."; \
			$(MAKE) $(MFLAGS) all); \
	done

clean::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "making" clean "in signal/$$i..."; \
			$(MAKE) $(MFLAGS) clean); \
	done

distclean::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "making" distclean "in signal/$$i..."; \
			$(MAKE) $(MFLAGS) distclean); \
	done

pdf: subs $(TEXFILES)
	awk '{if ($$1~"documentstyle") \
	{printf "\\documentstyle[amssymb,11pt,makeidx,times,hyperref]{book}\n"} else {print $$0} }' \
	Toolbox.tex > Toolbox_pdf.tex
	latex Toolbox_pdf
	latex Toolbox_pdf
	makeindex -s Toolbox.isty Toolbox_pdf
	latex Toolbox_pdf
	dvips -z -o Signal_pdf.ps Toolbox_pdf.dvi