From: j8takagi Date: Fri, 25 Jan 2013 02:50:53 +0000 (+0900) Subject: docディレクトリーのMakefileを修正 X-Git-Tag: 0.2p3^2~1 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3888742173d70889c8748f34506c8ddfdeda2530;p=autotest_mk.git docディレクトリーのMakefileを修正 --- 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-->