44 |
@make _clean-default |
@make _clean-default |
45 |
@make _doc-tarball |
@make _doc-tarball |
46 |
|
|
|
INSTALLED_DOC_SUBDIRS = error,init,input,learn,misc,networks,propagate,xml |
|
|
|
|
47 |
INSTALL = install -o root -g root |
INSTALL = install -o root -g root |
48 |
|
|
49 |
INSTALL_D = $(INSTALL) -m 755 |
INSTALL_D = $(INSTALL) -m 755 |
51 |
|
|
52 |
install: |
install: |
53 |
@echo " + creating directories ..." |
@echo " + creating directories ..." |
54 |
$(INSTALL_D) -d $(DOC_INSTALL_PATH)/{examples/helloworld,html/{$(INSTALLED_DOC_SUBDIRS)},man/{$(INSTALLED_DOC_SUBDIRS)},pdf,ps,texi,texi2html,user_manual/html} |
$(INSTALL_D) -d $(DOC_INSTALL_PATH)/{examples/helloworld,html/,user_manual/html} |
55 |
@echo " + installing files ..." |
@echo " + installing files ..." |
56 |
@make _install-examples |
@make _install-examples |
57 |
@make _install-html |
$(INSTALL_F) html/*.{html,css} $(DOC_INSTALL_PATH)/html |
58 |
@make _install-man |
$(INSTALL_F) $(NAME)_code_documentation.{pdf,ps} $(DOC_INSTALL_PATH) |
|
$(INSTALL_F) pdf/*.pdf $(DOC_INSTALL_PATH)/pdf |
|
|
$(INSTALL_F) ps/*.ps $(DOC_INSTALL_PATH)/ps |
|
|
$(INSTALL_F) texi/*.texi $(DOC_INSTALL_PATH)/texi |
|
|
$(INSTALL_F) texi2html/*.html $(DOC_INSTALL_PATH)/texi2html |
|
59 |
$(INSTALL_F) $(USER_MANUAL_DIR)/html/* \ |
$(INSTALL_F) $(USER_MANUAL_DIR)/html/* \ |
60 |
$(DOC_INSTALL_PATH)/$(USER_MANUAL_DIR)/html |
$(DOC_INSTALL_PATH)/$(USER_MANUAL_DIR)/html |
61 |
$(INSTALL_F) $(USER_MANUAL_DIR)/$(NAME)_user_manual.{pdf,ps} \ |
$(INSTALL_F) $(USER_MANUAL_DIR)/$(NAME)_user_manual.{pdf,ps} \ |
66 |
$(INSTALL_F) examples/helloworld/{helloworld.ml,Makefile} \ |
$(INSTALL_F) examples/helloworld/{helloworld.ml,Makefile} \ |
67 |
$(DOC_INSTALL_PATH)/examples/helloworld |
$(DOC_INSTALL_PATH)/examples/helloworld |
68 |
|
|
|
_install-html: |
|
|
for i in $(SUBDIRS);\ |
|
|
do\ |
|
|
$(INSTALL_F) html/$$i/{*.html,style.css} $(DOC_INSTALL_PATH)/html/$$i;\ |
|
|
done |
|
|
|
|
|
_install-man: |
|
|
for i in $(SUBDIRS);\ |
|
|
do\ |
|
|
$(INSTALL_F) man/$$i/*.txt $(DOC_INSTALL_PATH)/man/$$i;\ |
|
|
done |
|
|
|
|
69 |
uninstall: |
uninstall: |
70 |
@echo " + remoning installed documentation ..." |
@echo " + remoning installed documentation ..." |
71 |
rm -Rf $(DOC_INSTALL_PATH) |
rm -Rf $(DOC_INSTALL_PATH) |