X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=Makefile;h=1b8f0e4804e7ddf1f34497c247462f6dc8db8505;hb=419f06363260b291c2242aec48ec450f44ba2006;hp=21e5740a89fba4bf0e15ae685aa6f3fd03a3a1dc;hpb=d34e0d693aad24483caafaf540b162323dd0ba21;p=gapil.git diff --git a/Makefile b/Makefile index 21e5740..1b8f0e4 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,20 @@ 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 $< -$(PDF_IMG): %.pdf: %.ps +$(HTML_H): %.h.html: %.h + source-highlight -f html -s cpp $< + +$(PDF_IMG): %.pdf: %.eps epstopdf $< --outfile=$@ $(PS_IMG): %.ps : %.eps @@ -19,11 +28,6 @@ $(EPS_IMG): %.eps : %.dia 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 @@ -33,11 +37,13 @@ gapil.pdf: *.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 +install: gapil.pdf gapil.dvi + scp gapil.p* gapil_source.* piccardi@firenze.linux.it:public_html/gapil + scp html/*.html piccardi@firenze.linux.it:public_html/gapil/ + scp gapil.p* gapil_source.tgz root@truelite.it:/var/www/gapil + scp html/*.html root@truelite.it:/var/www/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/*.eps img/*.pdf