浏览代码

Add output file names to Makefile

By making output file names explicit, we can avoid rebuilding
when source is not modified.
Yusuke Matsubara 10 年之前
父节点
当前提交
c1d91255aa
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      Makefile

+ 8 - 4
Makefile

@@ -1,21 +1,25 @@
 all: html pdf docx rtf
 
-pdf: resume.md
+pdf: resume.pdf
+resume.pdf: resume.md
 	pandoc --standalone --template style_chmduquesne.tex \
 	--from markdown --to context \
 	-V papersize=A4 \
 	-o resume.tex resume.md; \
 	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 \
         --from markdown --to html \
         -o resume.html resume.md
 
-docx: resume.md
+docx: resume.docx
+resume.docx: resume.md
 	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
 
 clean: