Remove unused fields
[scilab.git] / scilab_doc / comm / Makefile
1 SHELL = /bin/sh
2
3 #include ../../Version.incl
4 SCIDIR=../..
5 SCIDOC=$(SCIDIR)/../$(SCIVERSION)/doc
6 #include ../../Makefile.incl
7
8 all:: $(SCIDOC)/Comm.ps
9
10 $(SCIDOC)/Comm.ps: comm.tex
11         latex comm
12         latex comm
13         $(RM) $@
14         dvips -o $(SCIDOC)/Comm.ps comm.dvi
15
16 clean::
17         $(RM) *.aux *.log  *.dvi *.idx *.ind *.ilg *.lof *.lot *.toc \
18         comm_pdf.* *.tmp Comm_pdf.ps
19 distclean::
20         $(RM) *.aux *.log  *.dvi *.idx *.ind *.ilg *.lof *.lot *.toc \
21         comm_pdf.* *.tmp Comm_pdf.ps 
22
23 CFLAGS = $(CC_OPTIONS)
24
25 examples: alpha beta
26
27 alpha: alpha.c
28         $(RM) alpha
29         $(CC) -o alpha alpha.c $(CC_LDFLAGS) $(SCIDIR)/libs/libcomm.a
30
31 beta: beta.c
32         $(RM) beta
33         $(CC) -o beta beta.c $(CC_LDFLAGS) $(SCIDIR)/libs/libcomm.a
34
35 distclean::
36         $(RM) alpha beta
37
38 pdf: comm.tex
39         awk '{if ($$1~"documentclass") \
40         {printf "%s\n\\usepackage[dvips,colorlinks=true]{hyperref}\\usepackage{times}\n",$$1} else {print $$0} }' \
41         comm.tex > comm_pdf.tex
42         latex comm_pdf
43         latex comm_pdf
44         dvips -z -o Comm_pdf.ps comm_pdf.dvi