diff --git a/.gitignore b/.gitignore index d03d5da..af26e0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /README.html +/README.body.html /out # NPM README diff --git a/Makefile b/Makefile index a53128b..fb665d1 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,13 @@ -README.html: README.adoc - bundle exec asciidoctor -o '$@' -v '$<' +.PHONY: clean + +OUT = README.html +HEAD = head.html +BODY = README.body.html +FOOT = foot.html + +$(OUT): README.adoc $(HEAD) $(FOOT) + bundle exec asciidoctor --embedded -o $(BODY) -v '$<' + cat $(HEAD) $(BODY) $(FOOT) > '$@' + +clean: + rm -rf $(OUT) $(BODY) diff --git a/foot.html b/foot.html new file mode 100644 index 0000000..9943ff0 --- /dev/null +++ b/foot.html @@ -0,0 +1,3 @@ + + + diff --git a/head.html b/head.html new file mode 100644 index 0000000..b3c9ca5 --- /dev/null +++ b/head.html @@ -0,0 +1,460 @@ + + + + + + + +China Dictatorship 中国独裁统治 + + + + + + + +