X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=Makefile;h=a6a12e61889e38ba04174ede07fc04c91ff72c9b;hp=b05b98d697a444217aaf0ac19cad963445955fa5;hb=d25090faca15102552d77c38161a8a34b0bac41e;hpb=51ba94804686269c5967e2a30590fa167c059442 diff --git a/Makefile b/Makefile index b05b98d..a6a12e6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,51 @@ +SOURCE_IMG = $(wildcard img/*.dia) +PS_IMG = $(SOURCE_IMG:.dia=.ps) +EPS_IMG = $(SOURCE_IMG:.dia=.eps) +PDF_IMG = $(SOURCE_IMG:.dia=.pdf) +SOURCE = $(wildcard sources/*.c) $(wildcard sources/*.h) sources/Makefile +CODE_C = $(wildcard listati/*.c) +CODE_H = $(wildcard listati/*.h) +HTML_C = $(CODE_C:.c=.c.html) +HTML_H = $(CODE_H:.h=.h.html) -html: - latex2html main.tex +all: $(PDF_IMG) gapil.tgz $(HTML_C) $(HTML_H) #htm -dvi: - latex main.tex -ps: dvi - dvips -o gapil.ps main.dvi +$(HTML_C): %.c.html: %.c + source-highlight -f html -s cpp $< + +$(HTML_H): %.h.html: %.h + source-highlight -f html -s cpp $< + +$(PDF_IMG): %.pdf: %.ps + epstopdf $< --outfile=$@ + +$(PS_IMG): %.ps : %.eps + eps2eps $< $@ + +$(EPS_IMG): %.eps : %.dia + dia --nosplash -e $@ $< + +gapil.tgz: $(SOURCE) sources/Makefile + tar -cvz -f $@ $^ + +htm: *.tex + scp -r gapil/* piccardi@firenze.linux.it:public_html/gapil/html + scp gapil.p* piccardi@firenze.linux.it:public_html/gapil/ + +gapil.dvi: *.tex + latex gapil.tex + +gapil.pdf: *.tex + pdflatex gapil.tex + +gapil.ps: gapil.dvi + dvips -o gapil.ps gapil.dvi + +install: + scp -r gapil.p* piccardi@firenze.linux.it:public_html/gapil + scp -r gapil/* piccardi@firenze.linux.it:public_html/gapil/html + scp html/*.html piccardi@firenze.linux.it:public_html/gapil/ clean: - rm -f *.dvi *.log *.ps *.html *.aux \ No newline at end of file + rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \ + *.pdf *.out *.idx *~ listati/*.html img/*.ps img/*.pdf +