エラーのスペルミス修正
[YACASL2.git] / doc / Makefile
index 98b03fc..e5b87fd 100644 (file)
@@ -8,7 +8,10 @@ DVI2PDF = $(TEXBIN)/dvipdfmx
 TEXOBJDIR = texobj
 
 .PHONY: all htmlnosplit pdf clean
-all: htmlnosplit html pdf
+all: info htmlnosplit html pdf
+info: $(DOCNAME).info
+$(DOCNAME).info: $(SRC)
+       @makeinfo -o $@ $^
 htmlnosplit: $(DOCNAME).html
 $(DOCNAME).html: $(SRC) $(CSS)
        @makeinfo -o $@ --no-split --no-headers --html --css-include=$(CSS) $(SRC)
@@ -21,8 +24,6 @@ $(DOCNAME).pdf: $(DOCNAME).dvi
        @$(DVI2PDF) $^
 $(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 $^
 clean:
-       @rm -rf html $(TEXOBJDIR) $(DOCNAME).html $(DOCNAME).dvi $(DOCNAME).pdf
+       @rm -rf html $(TEXOBJDIR) $(DOCNAME).info $(DOCNAME).?? $(DOCNAME).???