此文版权属于作者所有,任何人、媒体或者网站转载、借用都必须征得作者本人同意!
diffs := $(wildcard *.diff)
htmls := $(patsubst %.diff,%.html,$(diffs))
build_html: $(htmls)
update_diff:
./update_diff.sh
%.html:%.diff
@echo convert
@echo ' $<'
@echo ' to'
@echo ' $@'
@pygmentize -l diff -f html -O full,encoding=utf-8 -o $@ $<
.PHONY: help
help:
@echo useage:
@echo ' make build_html'
@echo ' make update_diff'
此文版权属于作者
![](http://hi.csdn.net/attachment/201110/19/0_13189938139CCL.gif)