X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=Makefile;h=a6a12e61889e38ba04174ede07fc04c91ff72c9b;hp=570d4c70e9efd42a83940fd7e2ec4943d79560cf;hb=35ac483eecd026ebf7ffdbf44074d5346e1d272a;hpb=cafa967a50500188f66d522493fb02804ab3b408 diff --git a/Makefile b/Makefile index 570d4c7..a6a12e6 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,18 @@ 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) +all: $(PDF_IMG) gapil.tgz $(HTML_C) $(HTML_H) #htm -all: $(PDF_IMG) gapil.tgz htm +$(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=$@ @@ -20,7 +29,6 @@ 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/ @@ -39,5 +47,5 @@ install: scp html/*.html piccardi@firenze.linux.it:public_html/gapil/ clean: rm -f *.dvi *.log *.ps *.html *.aux *.toc *.rel *.ilg *.rip *.ind \ - *.pdf *.out *.idx *~ + *.pdf *.out *.idx *~ listati/*.html img/*.ps img/*.pdf