From 3888742173d70889c8748f34506c8ddfdeda2530 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Fri, 25 Jan 2013 11:50:53 +0900 Subject: [PATCH] =?utf8?q?doc=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88?= =?utf8?q?=E3=83=AA=E3=83=BC=E3=81=AEMakefile=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- doc/.gitignore | 1 + doc/Makefile | 58 ++++++------- doc/autotest_mk.html | 93 +++++++++++---------- doc/autotest_mk.texi | 80 +++++++++--------- doc/sample_sort/sort_001/0.txt | 5 -- doc/sample_sort/sort_001/cmd.c.txt | 16 ---- doc/sample_sort/sort_001/desc.txt | 1 - doc/sample_sort/sort_001/makefile.txt | 13 --- doc/sample_sort/sort_002/0.txt | 1 - doc/sample_sort/sort_002/cmd.c.txt | 16 ---- doc/sample_sort/sort_002/desc.txt | 1 - doc/sample_sort/sort_002/makefile.txt | 13 --- doc/sample_sort/sort_003/0.txt | 5 -- doc/sample_sort/sort_003/cmd.c.txt | 16 ---- doc/sample_sort/sort_003/desc.txt | 1 - doc/sample_sort/sort_003/makefile.txt | 13 --- doc/sample_sort/sort_004/0.txt | 10 --- doc/sample_sort/sort_004/cmd.c.txt | 16 ---- doc/sample_sort/sort_004/desc.txt | 1 - doc/sample_sort/sort_004/makefile.txt | 13 --- doc/sample_sort/sort_005/0.txt | 10 --- doc/sample_sort/sort_005/cmd.c.txt | 16 ---- doc/sample_sort/sort_005/desc.txt | 1 - doc/sample_sort/sort_005/makefile.txt | 13 --- doc/sample_triangle/01_scalene/0.txt | 1 - doc/sample_triangle/01_scalene/cmd.txt | 1 - doc/sample_triangle/01_scalene/desc.txt | 1 - doc/sample_triangle/02_equilateral/0.txt | 1 - doc/sample_triangle/02_equilateral/cmd.txt | 1 - doc/sample_triangle/02_equilateral/desc.txt | 1 - doc/sample_triangle/03_isosceles/0.txt | 1 - doc/sample_triangle/03_isosceles/cmd.txt | 1 - doc/sample_triangle/03_isosceles/desc.txt | 1 - doc/sample_triangle/04_isosceles_c/0.txt | 3 - doc/sample_triangle/04_isosceles_c/cmd.txt | 3 - doc/sample_triangle/04_isosceles_c/desc.txt | 1 - doc/sample_triangle/05_zero/0.txt | 1 - doc/sample_triangle/05_zero/cmd.txt | 1 - doc/sample_triangle/05_zero/desc.txt | 1 - doc/sample_triangle/06_minus/0.txt | 1 - doc/sample_triangle/06_minus/cmd.txt | 1 - doc/sample_triangle/06_minus/desc.txt | 1 - doc/sample_triangle/07_line/0.txt | 1 - doc/sample_triangle/07_line/cmd.txt | 1 - doc/sample_triangle/07_line/desc.txt | 1 - doc/sample_triangle/08_lines/0.txt | 6 -- doc/sample_triangle/08_lines/cmd.txt | 6 -- doc/sample_triangle/08_lines/desc.txt | 1 - doc/sample_triangle/09_less/0.txt | 2 - doc/sample_triangle/09_less/cmd.txt | 2 - doc/sample_triangle/09_less/desc.txt | 1 - doc/sample_triangle/10_lesses/0.txt | 6 -- doc/sample_triangle/10_lesses/cmd.txt | 6 -- doc/sample_triangle/10_lesses/desc.txt | 1 - doc/sample_triangle/11_zeroall/0.txt | 1 - doc/sample_triangle/11_zeroall/cmd.txt | 1 - doc/sample_triangle/11_zeroall/desc.txt | 1 - doc/sample_triangle/12_notint/0.txt | 1 - doc/sample_triangle/12_notint/cmd.txt | 1 - doc/sample_triangle/12_notint/desc.txt | 1 - doc/sample_triangle/13_argcnt/0.txt | 2 - doc/sample_triangle/13_argcnt/cmd.txt | 3 - doc/sample_triangle/13_argcnt/desc.txt | 1 - doc/texinfo.mk | 42 ++++++++++ 64 files changed, 156 insertions(+), 367 deletions(-) delete mode 100644 doc/sample_sort/sort_001/0.txt delete mode 100644 doc/sample_sort/sort_001/cmd.c.txt delete mode 100644 doc/sample_sort/sort_001/desc.txt delete mode 100644 doc/sample_sort/sort_001/makefile.txt delete mode 100644 doc/sample_sort/sort_002/0.txt delete mode 100644 doc/sample_sort/sort_002/cmd.c.txt delete mode 100644 doc/sample_sort/sort_002/desc.txt delete mode 100644 doc/sample_sort/sort_002/makefile.txt delete mode 100644 doc/sample_sort/sort_003/0.txt delete mode 100644 doc/sample_sort/sort_003/cmd.c.txt delete mode 100644 doc/sample_sort/sort_003/desc.txt delete mode 100644 doc/sample_sort/sort_003/makefile.txt delete mode 100644 doc/sample_sort/sort_004/0.txt delete mode 100644 doc/sample_sort/sort_004/cmd.c.txt delete mode 100644 doc/sample_sort/sort_004/desc.txt delete mode 100644 doc/sample_sort/sort_004/makefile.txt delete mode 100644 doc/sample_sort/sort_005/0.txt delete mode 100644 doc/sample_sort/sort_005/cmd.c.txt delete mode 100644 doc/sample_sort/sort_005/desc.txt delete mode 100644 doc/sample_sort/sort_005/makefile.txt delete mode 100644 doc/sample_triangle/01_scalene/0.txt delete mode 100755 doc/sample_triangle/01_scalene/cmd.txt delete mode 100644 doc/sample_triangle/01_scalene/desc.txt delete mode 100644 doc/sample_triangle/02_equilateral/0.txt delete mode 100755 doc/sample_triangle/02_equilateral/cmd.txt delete mode 100644 doc/sample_triangle/02_equilateral/desc.txt delete mode 100644 doc/sample_triangle/03_isosceles/0.txt delete mode 100755 doc/sample_triangle/03_isosceles/cmd.txt delete mode 100644 doc/sample_triangle/03_isosceles/desc.txt delete mode 100644 doc/sample_triangle/04_isosceles_c/0.txt delete mode 100755 doc/sample_triangle/04_isosceles_c/cmd.txt delete mode 100644 doc/sample_triangle/04_isosceles_c/desc.txt delete mode 100644 doc/sample_triangle/05_zero/0.txt delete mode 100755 doc/sample_triangle/05_zero/cmd.txt delete mode 100644 doc/sample_triangle/05_zero/desc.txt delete mode 100644 doc/sample_triangle/06_minus/0.txt delete mode 100755 doc/sample_triangle/06_minus/cmd.txt delete mode 100644 doc/sample_triangle/06_minus/desc.txt delete mode 100644 doc/sample_triangle/07_line/0.txt delete mode 100755 doc/sample_triangle/07_line/cmd.txt delete mode 100644 doc/sample_triangle/07_line/desc.txt delete mode 100644 doc/sample_triangle/08_lines/0.txt delete mode 100755 doc/sample_triangle/08_lines/cmd.txt delete mode 100644 doc/sample_triangle/08_lines/desc.txt delete mode 100644 doc/sample_triangle/09_less/0.txt delete mode 100755 doc/sample_triangle/09_less/cmd.txt delete mode 100644 doc/sample_triangle/09_less/desc.txt delete mode 100644 doc/sample_triangle/10_lesses/0.txt delete mode 100755 doc/sample_triangle/10_lesses/cmd.txt delete mode 100644 doc/sample_triangle/10_lesses/desc.txt delete mode 100644 doc/sample_triangle/11_zeroall/0.txt delete mode 100755 doc/sample_triangle/11_zeroall/cmd.txt delete mode 100644 doc/sample_triangle/11_zeroall/desc.txt delete mode 100644 doc/sample_triangle/12_notint/0.txt delete mode 100755 doc/sample_triangle/12_notint/cmd.txt delete mode 100644 doc/sample_triangle/12_notint/desc.txt delete mode 100644 doc/sample_triangle/13_argcnt/0.txt delete mode 100755 doc/sample_triangle/13_argcnt/cmd.txt delete mode 100644 doc/sample_triangle/13_argcnt/desc.txt create mode 100644 doc/texinfo.mk diff --git a/doc/.gitignore b/doc/.gitignore index 10759fd..372cbd0 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -3,3 +3,4 @@ autotest_mk.info autotest_mk.dvi autotest_mk.pdf autotest_mk.xml +sample diff --git a/doc/Makefile b/doc/Makefile index 48d31da..8825840 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,46 +1,38 @@ -DOCNAME = autotest_mk -SRC = $(DOCNAME).texi -CSS = style.css -SAMPLES = sample_triangle sample_sort +DOC := autotest_mk +CSS := style.css +SAMPLE := sample -PTEX = ptex -TEXINDEX = texindex -DVI2PDF = dvipdfmx -MAKEINFO = makeinfo +MKDIR := mkdir -p +RMRF := rm -rf +RSYNC := rsync -.PHONY: all htmlnosplit pdf clean +.PHONY: base all clean -.INTERMEDIATE: $(DOCNAME).dvi +base: $(DOC).info $(DOC).html -all: info htmlnosplit html pdf +all: base $(DOC)_html $(DOC).pdf -htmlnosplit: $(DOCNAME).html +$(DOC).html: $(SAMPLE) -info: $(DOCNAME).info +$(SAMPLE): $(SAMPLE)/triangle $(SAMPLE)/sort -html: $(SRC) $(CSS) $(SAMPLES) - @if test ! -s $@; then mkdir $@; fi; - @cp $(CSS) $@/ - @cp -r $(SAMPLES) $@/ - @$(MAKEINFO) -o $@ --html --css-ref=style.css $(SRC) +$(SAMPLE)/triangle: ../sample/triangle/test + if test ! -e $(dir $@); then $(MKDIR) $(dir $@); fi + $(RSYNC) -az $ +Copyright (C) 2011-2013 j8takagi-->