Commit 2452d526 authored by nimrod's avatar nimrod
Browse files

modified: Makefile

parent 80060a75
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
resume = resume.rst
css = resume.css
papersize = A4
RESUME = resume.rst
CSS = resume.css
PAPERSIZE = A4

all: html pdf docx odt

html: $(resume)
	pandoc -s -t html5 --email-obfuscation=none -c resume.css $(resume) -o resume.html
html: $(RESUME)
	pandoc -s -t html5 --email-obfuscation=none -c resume.css $(RESUME) -o resume.html

pdf: $(resume)
	pandoc $(resume) -c $(css) -V papersize=$(papersize) -o resume.pdf
pdf: $(RESUME)
	pandoc $(RESUME) -c $(CSS) -V papersize=$(PAPERSIZE) -o resume.pdf

docx: $(resume) html
	pandoc $(resume) -c $(css) -V papersize=$(papersize) -o resume.docx
docx: $(RESUME) html
	pandoc $(RESUME) -c $(CSS) -V papersize=$(PAPERSIZE) -o resume.docx

odt: $(resume) html
	pandoc $(resume) -c $(css) -V papersize=$(papersize) -o resume.odt
odt: $(RESUME) html
	pandoc $(RESUME) -c $(CSS) -V papersize=$(PAPERSIZE) -o resume.odt

clean:
	rm resume.html resume.pdf resume.docx resume.odt

publish: all
	rsync -az --exclude="$(resume)" --exclude="Makefile" --exclude="resume.css" ./ www.shore.co.il:/var/www/htdocs/www.shore.co.il/resume
	rsync -az --exclude="$(RESUME)" --exclude="Makefile" --exclude="resume.css" ./ www.shore.co.il:/var/www/htdocs/www.shore.co.il/resume