Pārlūkot izejas kodu

Merge pull request #8 from whym/master

Add output file names to Makefile
Mark Szepieniec 10 gadi atpakaļ
vecāks
revīzija
961bc04e51
1 mainītis faili ar 8 papildinājumiem un 4 dzēšanām
  1. 8 4
      Makefile

+ 8 - 4
Makefile

@@ -1,21 +1,25 @@
 all: html pdf docx rtf
 all: html pdf docx rtf
 
 
-pdf: resume.md
+pdf: resume.pdf
+resume.pdf: resume.md
 	pandoc --standalone --template style_chmduquesne.tex \
 	pandoc --standalone --template style_chmduquesne.tex \
 	--from markdown --to context \
 	--from markdown --to context \
 	-V papersize=A4 \
 	-V papersize=A4 \
 	-o resume.tex resume.md; \
 	-o resume.tex resume.md; \
 	context resume.tex
 	context resume.tex
 
 
-html: style_chmduquesne.css resume.md
+html: resume.html
+resume.html: style_chmduquesne.css resume.md
 	pandoc --standalone -H style_chmduquesne.css \
 	pandoc --standalone -H style_chmduquesne.css \
         --from markdown --to html \
         --from markdown --to html \
         -o resume.html resume.md
         -o resume.html resume.md
 
 
-docx: resume.md
+docx: resume.docx
+resume.docx: resume.md
 	pandoc -s -S resume.md -o resume.docx
 	pandoc -s -S resume.md -o resume.docx
 
 
-rtf: resume.md
+rtf: resume.rtf
+resume.rtf: resume.md
 	pandoc -s -S resume.md -o resume.rtf
 	pandoc -s -S resume.md -o resume.rtf
 
 
 clean:
 clean: