projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmd.cの削除に伴い、ユニットテストとdoxygenドキュメントを修正
[YACASL2.git]
/
doc
/
Makefile
diff --git
a/doc/Makefile
b/doc/Makefile
index
87999f6
..
7280fb0
100644
(file)
--- a/
doc/Makefile
+++ b/
doc/Makefile
@@
-1,31
+1,44
@@
DOCNAME = yacasl2
SRC = $(DOCNAME).texi
CSS = style.css
DOCNAME = yacasl2
SRC = $(DOCNAME).texi
CSS = style.css
-TEXBIN = /usr/local/teTeX/bin
-PTEX = $(TEXBIN)/ptex
-TEXINDEX = $(TEXBIN)/texindex
-DVI2PDF = $(TEXBIN)/dvipdfmx
-TEXOBJDIR = texobj
+
+PTEX = ptex
+TEXI2DVI = texi2dvi
+DVI2PDF = dvipdfmx
+MAKEINFO = makeinfo
+MV = mv
.PHONY: all htmlnosplit pdf clean
.PHONY: all htmlnosplit pdf clean
-all: info htmlnosplit html pdf
-info: $(DOCNAME).info
-$(DOCNAME).info: $(SRC)
- @makeinfo -o $@ $^
+
+.INTERMEDIATE: $(DOCNAME).dvi
+
+doc: info htmlnosplit html pdf
+
htmlnosplit: $(DOCNAME).html
htmlnosplit: $(DOCNAME).html
-$(DOCNAME).html: $(SRC) $(CSS)
- @makeinfo -o $@ --no-split --no-headers --html --css-include=$(CSS) $(SRC)
+ $(MV) $< index.html
+
html: $(SRC) $(CSS)
html: $(SRC) $(CSS)
- @if test ! -s $@; then mkdir $@; fi; \
- cp $(CSS) $@/$(CSS); \
- makeinfo -o $@ --html --css-ref=style.css $(SRC)
+ @if test ! -s $@; then mkdir $@; fi;
+ @cp $(CSS) $@/$(CSS)
+ @$(MAKEINFO) -o $@ --html --css-ref=style.css $(SRC)
+
pdf: $(DOCNAME).pdf
pdf: $(DOCNAME).pdf
+
+info: $(DOCNAME).info
+
+$(DOCNAME).info: $(SRC)
+ @$(MAKEINFO) -o $@ $^
+
+$(DOCNAME).html: $(SRC) $(CSS)
+ @$(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $(SRC)
+
$(DOCNAME).pdf: $(DOCNAME).dvi
@$(DVI2PDF) $^
$(DOCNAME).pdf: $(DOCNAME).dvi
@$(DVI2PDF) $^
+
$(DOCNAME).dvi: $(SRC)
$(DOCNAME).dvi: $(SRC)
- @if test ! -s $(TEXOBJDIR); then mkdir $(TEXOBJDIR); fi; \
- cd $(TEXOBJDIR); \
- TEX=ptex texi2dvi --texinfo=@afourpaper -o ../$@ ../$^; \
- cd -
+ @TEX=$(PTEX) $(TEXI2DVI) -q --texinfo=@afourpaper -o $@ $<
+ @rm -rf $(DOCNAME).aux $(DOCNAME).cp $(DOCNAME).cps $(DOCNAME).fn $(DOCNAME).ky $(DOCNAME).log $(DOCNAME).pg $(DOCNAME).pgs $(DOCNAME).tmp $(DOCNAME).toc $(DOCNAME).tp $(DOCNAME).vr
+
clean:
clean:
- @rm -rf html $(TEXOBJDIR) $(DOCNAME).info $(DOCNAME).dvi $(DOCNAME).pdf
+ @rm -rf html $(DOCNAME).info $(DOCNAME).pdf $(DOCNAME).html $(DOCNAME).dvi
+ @rm -rf $(DOCNAME).aux $(DOCNAME).cp $(DOCNAME).cps $(DOCNAME).fn $(DOCNAME).ky $(DOCNAME).log $(DOCNAME).pg $(DOCNAME).pgs $(DOCNAME).tmp $(DOCNAME).toc $(DOCNAME).tp $(DOCNAME).vr