有 global 的 Makefile 嗎? - Linux

By Rebecca
at 2016-11-20T22:07
at 2016-11-20T22:07
Table of Contents
現在寫報告,會寫成 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è¯*
--
Tags:
Linux
All Comments

By Eartha
at 2016-11-22T02:30
at 2016-11-22T02:30

By Quintina
at 2016-11-23T21:23
at 2016-11-23T21:23

By Mia
at 2016-11-24T19:45
at 2016-11-24T19:45

By Dorothy
at 2016-11-27T16:15
at 2016-11-27T16:15

By Edwina
at 2016-11-30T16:08
at 2016-11-30T16:08
Related Posts
openSUSE Leap 42.2 Out Now!

By Frederica
at 2016-11-17T17:07
at 2016-11-17T17:07
Mac還是Linux?

By Adele
at 2016-11-17T14:48
at 2016-11-17T14:48
Mac還是Linux?

By Elizabeth
at 2016-11-17T13:17
at 2016-11-17T13:17
請問Solaris上的outb()要如何link ?

By Anonymous
at 2016-11-16T16:56
at 2016-11-16T16:56
CentOS無法開機

By Leila
at 2016-11-15T20:37
at 2016-11-15T20:37