ajoute la gestion des vignettes par Makefile
1
.gitignore
vendored
@ -3,6 +3,7 @@ guide_libre_asso.*
|
||||
teaser.pdf
|
||||
version_html/
|
||||
version_epub/
|
||||
includes/*/vignettes/*
|
||||
|
||||
*.aux
|
||||
*.ilg
|
||||
|
24
Makefile
@ -6,6 +6,24 @@ TEMP=$(foreach ext,$(EXT), guide.$(ext))
|
||||
PDFTEX = pdflatex -interaction nonstopmode
|
||||
NEED_RERUN = '(There were undefined references|Rerun (me )?to get (cross-references|the bars) right)|((Reference|Citation).*undefined)|(Label.*multiply defined)'
|
||||
|
||||
IMG_PNG = $(wildcard includes/screenshots/*.png) $(wildcard includes/images/*.png)
|
||||
IMG_PNG_SMALL = $(subst screenshots,screenshots/vignettes, $(subst images,images/vignettes, ${IMG_PNG}))
|
||||
|
||||
includes/screenshots/vignettes/%.png: includes/screenshots/%.png
|
||||
convert $< -resize 200 $@
|
||||
|
||||
includes/images/vignettes/%.png: includes/images/%.png
|
||||
convert $< -resize 200 $@
|
||||
|
||||
IMG_JPG = $(wildcard includes/screenshots/*.jpg) $(wildcard includes/images/*.jpg)
|
||||
IMG_JPG_SMALL = $(subst screenshots,screenshots/vignettes, $(subst images,images/vignettes, ${IMG_JPG}))
|
||||
|
||||
includes/screenshots/vignettes/%.jpg: includes/screenshots/%.jpg
|
||||
convert $< -resize 200 $@
|
||||
|
||||
includes/images/vignettes/%.jpg: includes/images/%.jpg
|
||||
convert $< -resize 200 $@
|
||||
|
||||
all : ${PDF}
|
||||
guide_libre_asso.wiki:
|
||||
wget "http://wiki.april.org/index.php?title=Guide_Libre_Association_complet&action=raw" -O $@
|
||||
@ -16,11 +34,11 @@ guide_libre_asso.tex: guide_libre_asso.wiki
|
||||
sed -i $@ -e 's/\\description/\\descriptif/g'
|
||||
vim -c '%s/^\(\s*\*.*\)\n\(\s*[^*]\|\n\)/\1\r\\end{itemize}\r\2/g' -c '%s/^\(\s*[^*].*\|\)\n\s*\*/\1\r\\begin{itemize}\r*/g' -c '%s/^\s*\*/\\item/' -c ':x' $@
|
||||
|
||||
guide.pdf: guide.tex guide_libre_asso.tex lolipop.cls
|
||||
guide.pdf: guide.tex guide_libre_asso.tex lolipop.cls ${IMG_PNG} ${IMG_JPG}
|
||||
${PDFTEX} $<
|
||||
if egrep -q $(NEED_RERUN) $(subst tex,log,$<) ; then ${PDFTEX} $< ; fi
|
||||
|
||||
version_html/tmp/guide.html: guide.tex guide_libre_asso.tex lolipop.hva
|
||||
version_html/tmp/guide.html: guide.tex guide_libre_asso.tex lolipop.hva ${IMG_PNG_SMALL} ${IMG_JPG_SMALL}
|
||||
cd version_html/tmp &&\
|
||||
hevea -I ../../ $< 2> guide.log &&\
|
||||
if egrep -q $(NEED_RERUN) guide.log ; then hevea -I ../../ $< 2> guide.log; fi
|
||||
@ -42,6 +60,6 @@ clean:
|
||||
rm -fv $(TEMP) version_html/tmp/*
|
||||
|
||||
mrproper: clean
|
||||
rm -fv guide.pdf guide_libre_asso.* version_html/guide.html
|
||||
rm -fv guide.pdf guide_libre_asso.* version_html/guide.html ${IMG_PNG_SMALL} ${IMG_JPG_SMALL}
|
||||
|
||||
distclean: mrproper
|
||||
|
BIN
includes/images/stevejob.pdf
Normal file
2972
includes/images/stevejob.svg
Normal file
After Width: | Height: | Size: 224 KiB |
0
includes/images/vignettes/.gitkeep
Normal file
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 124 KiB |
BIN
includes/screenshots/framapad.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
includes/screenshots/owncloud.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
includes/screenshots/sigmah.png
Normal file
After Width: | Height: | Size: 109 KiB |
1
includes/screenshots/stevejob.pdf
Symbolic link
@ -0,0 +1 @@
|
||||
../../includes/images/stevejob.pdf
|
BIN
includes/screenshots/stevejob.pdf.png
Normal file
After Width: | Height: | Size: 103 KiB |
0
includes/screenshots/vignettes/.gitkeep
Normal file
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 17 KiB |