projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PBM作成アセンブルプログラムを修正
[YACASL2.git]
/
doc
/
Makefile
diff --git
a/doc/Makefile
b/doc/Makefile
index
c4dc520
..
04b5f16
100644
(file)
--- a/
doc/Makefile
+++ b/
doc/Makefile
@@
-1,47
+1,44
@@
-DOCNAME = yacasl2
-SRC = $(DOCNAME).texi
-CSS = style.css
+RMR := $(RM) -r
+SED := sed
-MV = mv
-CP = cp
-MKDIR = mkdir
-RMRF = rm -rf
-PTEX = ptex
-TEXI2DVI = texi2dvi
-DVI2PDF = dvipdfmx
-MAKEINFO = makeinfo
+DOCS := install manual
+CSS := style.css
-.PHONY: doc info htmlnosplit html pdf clean clean_docs clean_tex_tmp
+prefix ?= ~
+infodir ?= $(prefix)/share/info
-.INTERMEDIATE: $(DOCNAME).dvi
+INSTALL-INFO-TARGETS := yacasl2.info
-doc: info htmlnosplit html pdf
+.PHONY: base all info html htmls pdf casl2_spec distclean clean
-info: $(DOCNAME).info
+base: install.txt info html
-htmlnosplit: index.html
+all: base html pdf casl2_spec
-index.html: $(SRC) $(CSS)
- $(MAKEINFO) -o $@ --no-split --html --css-include=$(CSS) $(SRC)
+info: yacasl2.info
-html: $(SRC) $(CSS)
- if test ! -e $@; then $(MKDIR) $@; fi;
- $(CP) $(CSS) $@/$(CSS)
- $(MAKEINFO) -o $@ --html --css-ref=$(CSS) $(SRC)
+html: $(addsuffix .html,$(DOCS))
-pdf: $(DOCNAME).pdf
+htmls: $(addsuffix _html,$(DOCS))
-$(DOCNAME).pdf: $(DOCNAME).dvi
- $(DVI2PDF) $^
+pdf: $(addsuffix .pdf,$(DOCS))
-$(DOCNAME).dvi: $(SRC)
- TEX=$(PTEX) $(TEXI2DVI) -q --texinfo=@afourpaper -o $@ $<
- @$(MAKE) clean_tex_tmp
+casl2_spec:
+ $(MAKE) -C casl2_spec
-clean: clean_docs clean_tex_tmp
+yacasl2.info: manual.texi
+ $(MAKEINFO) $(MAKEINFO_FLAGS) $<
-clean_docs:
- @$(RMRF) html $(DOCNAME).info $(DOCNAME).pdf $(DOCNAME).html
+# makeで作成されたドキュメントはすべて削除
+distclean: clean texinfo-distclean
+ $(RM) install.txt *.info *.html *_html *.pdf
+ $(MAKE) -C casl2_spec distclean
-clean_tex_tmp:
- @$(RMRF) $(DOCNAME).aux $(DOCNAME).cp $(DOCNAME).cps $(DOCNAME).fn $(DOCNAME).ky $(DOCNAME).log $(DOCNAME).pg $(DOCNAME).pgs $(DOCNAME).tmp $(DOCNAME).toc $(DOCNAME).tp $(DOCNAME).vr
+# make baseで作成されたドキュメントは残す
+clean: texinfo-clean
+ $(RM) *.bak
+ $(MAKE) -C casl2_spec clean
+
+include texinfo.mk
+
+include install-info.mk