星期一, 十二月 17, 2007

makefile for asciidoc

不愿意每次键入长长的命令来执行asciidoc的编译,那么下面这个makefile正是为此准备的,自动检查是否需要编译,如果需要则自动调用asciidoc:

HTMLS := $(patsubst %.txt,%.html,$(wildcard *.txt))

all: $(HTMLS)

%.html: %.txt
        asciidoc -a toc -a numbered $<

0 Comments:

发表评论

<< Home