Fatte mq_open, mq_close, mq_unlink, mq_setattr, mq_getaddr.
[gapil.git] / Makefile
index c27c57962620bd89efa8a0481c0d9b77f2a47b62..21e5740a89fba4bf0e15ae685aa6f3fd03a3a1dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,43 @@
-all: html dvi ps pdf img
+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
 
-html:
+
+all: $(PDF_IMG) gapil.tgz htm 
+
+$(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
        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/
 
-dvi: 
+gapil.dvi:  *.tex
        latex gapil.tex
 
-pdf: 
+gapil.pdf:  *.tex
        pdflatex gapil.tex
 
-ps: 
+gapil.ps: gapil.dvi 
        dvips -o gapil.ps gapil.dvi
 
 install:
-       scp -r gapil*  piccardi@firenze.linux.it:public_html
+       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 *.aux
+       rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \
+       *.pdf  *.out *.idx *~