summaryrefslogtreecommitdiffstats
path: root/fiz/naloga/predstavitev/Makefile
blob: 24c449b1206ec76325b7bf6d1e5017f57bde4036 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
default:
	@echo "Makefile za predstavitev Potisna sila vodne rakete."
	@echo "recepti:"
	@echo "- d: prenese+prevede slike iz Interneta (potrebna wget in imagemagick)"
	@echo "- update: git pull origin master (potreben git)"
	@echo "- g: generira PDF (download moraš narediti ti) (p. f5ff, biber, latex)"
	@echo "- clean: izbriše avtomatsko generirane stvari in slike (razen PDF)"

d:
	mkdir -p img
	wget -c https://upload.wikimedia.org/wikipedia/commons/1/15/Boyles_Law_animated.gif -Oimg/bojl.gif
	convert img/bojl.gif -pointsize 25 \
		-fill black -undercolor white -annotate +320+25 "konstantna m in T" \
		-annotate +4+20 "masa" \
		-annotate +43+396 "pritisk " \
		-annotate +265+396 "temperatura" \
		-undercolor blue -fill white -annotate +250+70 "pro. " \
		img/nbojl.gif
	convert img/nbojl.gif -coalesce img/genbojl%d.png

update:
	git pull origin master

g:
	~/projects/doc/f5ff.sh dokument
	biber dokument
	~/projects/doc/f5ff.sh dokument

clean:
	rm -f *.aux *.auxlock *.bbl *.bcf *.blg *.dvi *.log *.nav *.out *.run.xml *.snm *.toc *.synctex.gz stdout.log stderr.log
	rm -rf img