33 |
|
|
34 |
################################################################ |
################################################################ |
35 |
|
|
36 |
include ../src/common.Makefile |
include ../src/variables.Makefile |
37 |
|
|
38 |
USERMANUAL_DIR = user_manual |
USER_MANUAL_DIR = user_manual |
39 |
|
|
40 |
EXAMPLES_DIR = examples |
EXAMPLES_DIR = examples |
41 |
|
|
42 |
doc: |
doc: |
43 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
44 |
@make _clean-default |
@make _clean-default |
45 |
@make _doc-tarball |
@make _doc-tarball |
46 |
|
|
47 |
|
INSTALLED_DOC_SUBDIRS = error,init,input,learn,misc,networks,propagate,xml |
48 |
|
|
49 |
|
INSTALL = install -o root -g root |
50 |
|
|
51 |
|
INSTALL_D = $(INSTALL) -m 755 |
52 |
|
INSTALL_F = $(INSTALL) -m 644 |
53 |
|
|
54 |
|
install: |
55 |
|
@echo " + creating directories ..." |
56 |
|
$(INSTALL_D) -d $(DOC_INSTALL_PATH)/{examples/helloworld,html/{$(INSTALLED_DOC_SUBDIRS)},man/{$(INSTALLED_DOC_SUBDIRS)},pdf,ps,texi,texi2html,user_manual/html} |
57 |
|
@echo " + installing files ..." |
58 |
|
@make _install-examples |
59 |
|
@make _install-html |
60 |
|
@make _install-man |
61 |
|
$(INSTALL_F) pdf/*.pdf $(DOC_INSTALL_PATH)/pdf |
62 |
|
$(INSTALL_F) ps/*.ps $(DOC_INSTALL_PATH)/ps |
63 |
|
$(INSTALL_F) texi/*.texi $(DOC_INSTALL_PATH)/texi |
64 |
|
$(INSTALL_F) texi2html/*.html $(DOC_INSTALL_PATH)/texi2html |
65 |
|
$(INSTALL_F) $(USER_MANUAL_DIR)/html/* \ |
66 |
|
$(DOC_INSTALL_PATH)/$(USER_MANUAL_DIR)/html |
67 |
|
$(INSTALL_F) $(USER_MANUAL_DIR)/$(NAME)_user_manual.{pdf,ps} \ |
68 |
|
$(DOC_INSTALL_PATH)/$(USER_MANUAL_DIR) |
69 |
|
$(INSTALL_F) index.html style.css $(DOC_INSTALL_PATH) |
70 |
|
|
71 |
|
_install-examples: |
72 |
|
$(INSTALL_F) examples/helloworld/{helloworld.ml,Makefile} \ |
73 |
|
$(DOC_INSTALL_PATH)/examples/helloworld |
74 |
|
|
75 |
|
_install-html: |
76 |
|
for i in $(SUBDIRS);\ |
77 |
|
do\ |
78 |
|
$(INSTALL_F) html/$$i/{*.html,style.css} $(DOC_INSTALL_PATH)/html/$$i;\ |
79 |
|
done |
80 |
|
|
81 |
|
_install-man: |
82 |
|
for i in $(SUBDIRS);\ |
83 |
|
do\ |
84 |
|
$(INSTALL_F) man/$$i/*.txt $(DOC_INSTALL_PATH)/man/$$i;\ |
85 |
|
done |
86 |
|
|
87 |
|
uninstall: |
88 |
|
@echo " + remoning installed documentation ..." |
89 |
|
rm -Rf $(DOC_INSTALL_PATH) |
90 |
|
|
91 |
_doc-tarball: |
_doc-tarball: |
92 |
@make -s -C .. version-dist |
@make -s -C .. version-dist |
93 |
@echo " + creating $(NAME)_documentation-`cat ../version`.tar.bz2 ..." |
@echo " + creating $(NAME)_documentation-`cat ../version`.tar.bz2 ..." |
103 |
@make -s -C .. clean-version |
@make -s -C .. clean-version |
104 |
|
|
105 |
html: |
html: |
106 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
107 |
|
|
108 |
dvi: |
dvi: |
109 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
110 |
|
|
111 |
pdf: |
pdf: |
112 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
113 |
|
|
114 |
ps: |
ps: |
115 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
116 |
|
|
117 |
|
doc-view: |
118 |
|
mozilla file://`pwd`/index.html |
119 |
|
|
120 |
clean: _clean-default |
clean: _clean-default |
121 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
122 |
@make -C $(EXAMPLES_DIR) $@ |
@make -C $(EXAMPLES_DIR) $@ |
123 |
|
|
124 |
_clean-default: clean-basic |
_clean-default: clean-basic |
125 |
@$(RM) -R dvi latex |
@$(RM) -R dvi latex |
126 |
|
|
127 |
clean-doc: _clean-default |
clean-doc: _clean-default |
128 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
129 |
$(RM) -R ./{dvi,html,latex,man,texi,pdf,ps,texi2html} \ |
$(RM) -R ./{dvi,html,latex,man,texi,pdf,ps,texi2html} \ |
130 |
../$(NAME)_documentation.tar.bz2 |
../$(NAME)_documentation.tar.bz2 |
131 |
|
|
132 |
dist-clean distclean: _clean-default |
dist-clean distclean: _clean-default |
133 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
134 |
@make -C $(EXAMPLES_DIR) $@ |
@make -C $(EXAMPLES_DIR) $@ |
135 |
|
|
136 |
clean-cvs: clean-cvs-default |
clean-cvs: clean-cvs-default |
137 |
@make -C $(USERMANUAL_DIR) $@ |
@make -C $(USER_MANUAL_DIR) $@ |
138 |
@make -C $(EXAMPLES_DIR) $@ |
@make -C $(EXAMPLES_DIR) $@ |
139 |
|
|
140 |
check: |
check: |
141 |
@make -C $(EXAMPLES_DIR) $@ |
@make -C $(EXAMPLES_DIR) $@ |
142 |
|
|
143 |
.PHONY: doc |
.PHONY: doc |
144 |
|
|
145 |
|
include ../src/commonrules.Makefile |