makefile for asciidoc

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

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

all: $(HTMLS)

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

相关文章


Leave a Reply