X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=Makefile;h=d1fb1d0070eae7426e4afc233e079660657b456e;hp=aa05f50955ac9cc9428f399029154e601e5dc913;hb=7b63698a1ef54d7274e2c14065d62260644abde0;hpb=b03f3481edf22386feccf6e0fc72951d771b1b88 diff --git a/Makefile b/Makefile index aa05f50..d1fb1d0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,42 @@ +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 + +all: $(PDF_IMG) gapil.tgz htm + +$(PDF_IMG): %.pdf: %.ps + epstopdf $< --outfile=$@ + +$(PS_IMG): %.ps : %.eps + eps2eps $< $@ + +$(EPS_IMG): %.eps : %.dia + dia -e $@ $< + +gapil.tgz: $(SOURCE) sources/Makefile + tar -cvz -f $@ $^ + +htm: *.tex + latex2html -local_icons -no_math -no_footnode gapil.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 clean: - rm -f *.dvi *.log *.ps *.html \ No newline at end of file + rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \ + *.pdf *.out *.idx *~ +