/**/include ../../../Path.incl
#include "../../../Imake.incl"

CHAP1= flts.1.tex flts.2.tex plot.1.tex plot.2.tex plot.3.tex  plot.4.tex

CHAP2= bode.1.tex bode.2.tex bode.3.tex bode.4.tex bode.5.tex bode.6.tex bode.7.tex group.1.tex group.2.tex group.3.tex group.4.tex group.5.tex group.6.tex group.7.tex group.8.tex sample.1.tex sample.2.tex sample.3.tex sample.4.tex sample.5.tex intdec.1.tex intdec.2.tex intdec.3.tex intdec.4.tex intdec.5.tex intdec.6.tex intdec.7.tex intdec.8.tex intdec.9.tex intdec.10.tex fft.1.tex fft.2.tex czt.1.tex

CHAP3=fir.1.tex fir.2.tex fir.3.tex fir.4.tex fir.5.tex fir.6.tex fir.7.tex fir.8.tex fir.9.tex fstyp12.1.tex fstyp12.2.tex remez.1.tex remez.2.tex remez.3.tex remez.4.tex remez.5.tex remez.6.tex remez.7.tex

CHAP4= analog.1.tex analog.2.tex analog.3.tex analog.4.tex analog.5.tex analog.6.tex analog.7.tex analog.8.tex analog.9.tex analog.10.tex analog.11.tex analog.12.tex iir.1.tex iir.2.tex iir.3.tex iir.4.tex iir.5.tex eqiir.4.tex

CHAP5= spect.1.tex spect.2.tex spect.3.tex spect.4.tex mem.1.tex mem.2.tex mem.3.tex

CHAP6= kf.1.tex kf.2.tex wf.1.tex

CHAP7= optiir1.tex optiir2.tex optiir3.tex optiir4.tex optiir5.tex optfir1.tex optfir2.tex

.SUFFIXES: .code .ps .tex   $(SUFFIXES) 

SCILAB=$(SCIDIR)/bin/scilab
BLATEXPR=$(SCIDIR)/bin/Blatexpr

AllTarget(chapters)

chapters:
	@for i in chap1 chap2 chap3 chap4 chap5 chap6 chap7  ;\
	do \
	(echo "Figures for chapter $$i"; $(MAKE) $(MFLAGS) $$i); \
	done

chap1:$(CHAP1) 

chap2:$(CHAP2) 

chap3:$(CHAP3) 

chap4:$(CHAP4) 

chap5:$(CHAP5)

chap6:$(CHAP6)

chap7:$(CHAP7)

depend::


distclean::
	$(RM) *.dia *.ps.n  *.ps d7.11.ps* *.tex  intdec.1_4 
	$(RM) intdec.5_10 group.1_5 group.6_8 remez.2_4 remez.5_7 fir.2_5
	$(RM) iir.2_3 spect.2_4 mem.1_3

clean::

.code.tex:
	@$(SCIDIR)/util/scidem $(SCIDIR) $*.code $*.dia
	@$(BLATEXPR) 0.8 0.8 $*.ps
	@$(RM) $*.ps



fir.5.tex fir.2.tex fir.3.tex fir.4.tex : fir.2_5

fir.2_5	: fir.2_5.code
	@$(SCIDIR)/util/scidem $(SCIDIR) fir.2_5.code \
		fir.2_5.dia
	@$(BLATEXPR) 0.8 0.8 fir.5.ps
	@$(BLATEXPR) 0.8 0.8 fir.2.ps
	@$(BLATEXPR) 0.8 0.8 fir.3.ps
	@$(BLATEXPR) 0.8 0.8 fir.4.ps
	@$(RM) $*.ps
	@echo " " > fir.2_5



intdec.1.tex intdec.2.tex intdec.3.tex intdec.4.tex : intdec.1_4

intdec.1_4	: intdec.1_4.code
	@$(SCIDIR)/util/scidem $(SCIDIR) intdec.1_4.code \
		intdec.1_4.dia
	@$(BLATEXPR) 0.8 0.8 intdec.1.ps
	@$(BLATEXPR) 0.8 0.8 intdec.2.ps
	@$(BLATEXPR) 0.8 0.8 intdec.3.ps
	@$(BLATEXPR) 0.8 0.8 intdec.4.ps
	@$(RM) $*.ps
	@echo " " > intdec.1_4


intdec.5.tex intdec.6.tex intdec.7.tex intdec.8.tex intdec.9.tex intdec.10.tex : intdec.5_10


intdec.5_10	: intdec.5_10.code
	@$(SCIDIR)/util/scidem $(SCIDIR) intdec.5_10.code \
		intdec.5_10.dia
	@$(BLATEXPR) 0.8 0.8 intdec.5.ps
	@$(BLATEXPR) 0.8 0.8 intdec.6.ps
	@$(BLATEXPR) 0.8 0.8 intdec.7.ps
	@$(BLATEXPR) 0.8 0.8 intdec.8.ps
	@$(BLATEXPR) 0.8 0.8 intdec.9.ps
	@$(BLATEXPR) 0.8 0.8 intdec.10.ps
	@$(RM) $*.ps
	@echo " " > intdec.5_10



group.1.tex group.2.tex group.3.tex group.4.tex group.5.tex : group.1_5

group.1_5	: group.1_5.code
	@$(SCIDIR)/util/scidem $(SCIDIR) group.1_5.code \
		group.1_5.dia
	@$(BLATEXPR) 0.8 0.8 group.1.ps
	@$(BLATEXPR) 0.8 0.8 group.2.ps
	@$(BLATEXPR) 0.8 0.8 group.3.ps
	@$(BLATEXPR) 0.8 0.8 group.4.ps
	@$(BLATEXPR) 0.8 0.8 group.5.ps
	@$(RM) $*.ps
	@echo " " > group.1_5

group.6.tex group.7.tex group.8.tex  : group.6_8


group.6_8	: group.6_8.code
	@$(SCIDIR)/util/scidem $(SCIDIR) group.6_8.code \
		group.6_8.dia
	@$(BLATEXPR) 0.8 0.8 group.6.ps
	@$(BLATEXPR) 0.8 0.8 group.7.ps
	@$(BLATEXPR) 0.8 0.8 group.8.ps
	@$(RM) $*.ps
	@echo " " > group.6_8


remez.2.tex remez.3.tex remez.4.tex : remez.2_4

remez.2_4	: remez.2_4.code
	@$(SCIDIR)/util/scidem $(SCIDIR) remez.2_4.code \
		remez.2_4.dia
	@$(BLATEXPR) 0.8 0.8 remez.2.ps
	@$(BLATEXPR) 0.8 0.8 remez.3.ps
	@$(BLATEXPR) 0.8 0.8 remez.4.ps
	@$(RM) $*.ps
	@echo " " > remez.2_4




remez.6.tex remez.7.tex remez.5.tex  : remez.5_7


remez.5_7	: remez.5_7.code
	@$(SCIDIR)/util/scidem $(SCIDIR) remez.5_7.code \
		remez.5_7.dia
	@$(BLATEXPR) 0.8 0.8 remez.5.ps
	@$(BLATEXPR) 0.8 0.8 remez.6.ps
	@$(BLATEXPR) 0.8 0.8 remez.7.ps
	@$(RM) $*.ps
	@echo " " > remez.5_7


mem.1.tex mem.2.tex mem.3.tex  : mem.1_3

mem.1_3	: mem.1_3.code
	@$(SCIDIR)/util/scidem $(SCIDIR) mem.1_3.code \
		mem.1_3.dia
	@$(BLATEXPR) 0.8 0.8 mem.1.ps
	@$(BLATEXPR) 0.8 0.8 mem.2.ps
	@$(BLATEXPR) 0.8 0.8 mem.3.ps
	@$(RM) $*.ps
	@echo " " > mem.1_3

iir.2.tex iir.3.tex  : iir.2_3

iir.2_3	: iir.2_3.code
	@$(SCIDIR)/util/scidem $(SCIDIR) iir.2_3.code \
		iir.2_3.dia
	@$(BLATEXPR) 0.8 0.8 iir.2.ps
	@$(BLATEXPR) 0.8 0.8 iir.3.ps
	@$(RM) $*.ps
	@echo " " > iir.2_3


spect.2.tex spect.3.tex spect.4.tex  : spect.2_4

spect.2_4	: spect.2_4.code
	@$(SCIDIR)/util/scidem $(SCIDIR) spect.2_4.code \
		spect.2_4.dia
	@$(BLATEXPR) 0.8 0.8 spect.2.ps
	@$(BLATEXPR) 0.8 0.8 spect.3.ps
	@$(BLATEXPR) 0.8 0.8 spect.4.ps
	@$(RM) $*.ps
	@echo " " > spect.2_4
