Transizione \macro{} -> \const{}, \errcode{}, \val{}
[gapil.git] / Makefile
1 SOURCE_IMG = $(wildcard img/*.dia)
2 PS_IMG = $(SOURCE_IMG:.dia=.ps)
3 EPS_IMG = $(SOURCE_IMG:.dia=.eps)
4 PDF_IMG = $(SOURCE_IMG:.dia=.pdf)
5 SOURCE =  $(wildcard sources/*.c) $(wildcard sources/*.h) sources/Makefile
6
7
8 all: $(PDF_IMG) gapil.tgz htm 
9
10 $(PDF_IMG): %.pdf: %.ps
11         epstopdf $< --outfile=$@
12
13 $(PS_IMG): %.ps : %.eps
14         eps2eps $< $@ 
15
16 $(EPS_IMG): %.eps : %.dia
17         dia --nosplash -e $@ $< 
18
19 gapil.tgz: $(SOURCE) sources/Makefile
20         tar -cvz -f $@ $^
21
22 htm: *.tex
23         latex2html -local_icons -no_math -no_footnode gapil.tex
24         scp -r gapil/* piccardi@firenze.linux.it:public_html/gapil/html
25         scp gapil.p* piccardi@firenze.linux.it:public_html/gapil/
26
27 gapil.dvi:  *.tex
28         latex gapil.tex
29
30 gapil.pdf:  *.tex
31         pdflatex gapil.tex
32
33 gapil.ps: gapil.dvi 
34         dvips -o gapil.ps gapil.dvi
35
36 install:
37         scp -r gapil.p*  piccardi@firenze.linux.it:public_html/gapil
38         scp -r gapil/*  piccardi@firenze.linux.it:public_html/gapil/html
39
40 clean: 
41         rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \
42         *.pdf  *.out *.idx *~
43