現在寫報告,會寫成 html 再印成 pdf 。
我的 Makefile 是這樣:
%.pdf: %.html style.css
wkhtmltopdf --print-media-type $< $@
但各科在不同的資料夾,
要每個資料夾都放一個一樣的 Makefile 很麻煩。
Makefile 有 implicit rule ,
像 make foo 就會自動執行
gcc -o foo foo.c
可以不用寫在 Makefile 裡。
有辦法加入自訂的 implicit rule 嗎?
目前想加的有 html to pdf
和 coffee script to javascript 吧。
%.js: %.coffee
coffee $<
--
篋ゆ√忨䓻篋醇掩젊
‰¸€¯ēƼåØ‧
°ä百äꂠ
跔茛ﴱ é—′ç1 2 ç跔슠゚돿ﶠ怴見gè¯*
--
All Comments