Makefile 930 Bytes
Newer Older
1
2
PDFIMAGES = $(shell ls *.pdf)
PNGIMAGES = ${PDFIMAGES:.pdf=.png}
3
HUGEIMAGES = $(shell find . -maxdepth 1 -name "*.pdf"  -size +10000k)
4
5
ORIGIMAGES = ${HUGEIMAGES:.pdf=.pdf-orig}

6
7
8
#PNGCONV = gm convert -density 1200 -resample 50 -trim -antialias -quality 9 -filter Cubic
PNGCONV = pdftoppm -png -singlefile -r 96 -freetype yes -aa yes -aaVector yes
PDFCONV = gm convert
9

Tiago Peixoto's avatar
Tiago Peixoto committed
10
11
#all: $(ORIGIMAGES) $(PNGIMAGES)
all:
12
13
	sphinx-build -E -b html . build

Tiago Peixoto's avatar
Tiago Peixoto committed
14
15
16
17
# %.pdf-orig: %.pdf
# 	$(PNGCONV) $< > $@-tmp.png
# 	$(PDFCONV) $@-tmp.png $@
# 	rm $@-tmp.png
18

Tiago Peixoto's avatar
Tiago Peixoto committed
19
20
21
# %.png: %.pdf
# 	test -d $<-orig && $(PNGCONV) $<-orig > $@ || true
# 	test -d $<-orig || $(PNGCONV) $< > $@ || true
22

23
24
25
latex:
	sphinx-build -E -b latex . build

26
27
28
test:
	OMP_NUM_THREADS=1 sphinx-build -b doctest . build

Tiago Peixoto's avatar
Tiago Peixoto committed
29
30
#push:
#	rsync -rEvpLz build/* root@skewed.de:/var/www/graph-tool-doc/
31

Tiago Peixoto's avatar
Tiago Peixoto committed
32
33
#push-dev:
#	rsync -rEvpLz build/* root@skewed.de:/var/www/graph-tool-doc/dev/
34

35
36
37
clean:
	rm -rf build