Skip to content
Snippets Groups Projects
Commit 96305e58 authored by nimrod's avatar nimrod
Browse files

Better Makefile.

parent be94e1d1
No related branches found
No related tags found
No related merge requests found
RESUME = resume.rst RESUME = resume.rst
CSS = resume.css
PAPERSIZE = A4 PAPERSIZE = A4
SERVER = www.shore.co.il
DEST = /var/www/htdocs/www.shore.co.il/resume
all: html pdf docx odt .PHONY: all clean publish test
html: $(RESUME) resume.html: $(RESUME)
pandoc -s -t html5 --email-obfuscation=none -c resume.css $(RESUME) -o resume.html pandoc -s -t html5 --email-obfuscation=none $(RESUME) -o resume.html
pdf: $(RESUME) resume.pdf: $(RESUME)
pandoc $(RESUME) -V papersize=$(PAPERSIZE) -o resume.pdf pandoc $(RESUME) -V papersize=$(PAPERSIZE) -o resume.pdf
docx: $(RESUME) html resume.docx: $(RESUME)
pandoc $(RESUME) -V papersize=$(PAPERSIZE) -o resume.docx pandoc $(RESUME) -V papersize=$(PAPERSIZE) -o resume.docx
odt: $(RESUME) html resume.odt: $(RESUME)
pandoc $(RESUME) -c $(CSS) -o resume.odt pandoc $(RESUME) -V papersize=$(PAPERSIZE) -o resume.odt
all: resume.html resume.pdf resume.docx resume.odt
clean: clean:
rm resume.html resume.pdf resume.docx resume.odt rm -f resume.html resume.pdf resume.docx resume.odt
publish: all publish: all
rsync -az --exclude="Makefile" --exclude="resume.css" ./ www.shore.co.il:/var/www/htdocs/www.shore.co.il/resume rsync -az resume.html resume.pdf resume.odt resume.docx $(SERVER):$(DEST)
test: clean all clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment