|
| 1 | +# |
| 2 | +# %CopyrightBegin% |
| 3 | +# |
| 4 | +# Copyright Ericsson AB 1997-2017. All Rights Reserved. |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | +# %CopyrightEnd% |
| 19 | +# |
| 20 | +# |
| 21 | +include $(ERL_TOP)/make/target.mk |
| 22 | +include $(ERL_TOP)/make/$(TARGET)/otp.mk |
| 23 | + |
| 24 | +CORBA_TOP=.. |
| 25 | + |
| 26 | +# ---------------------------------------------------- |
| 27 | +# Application version |
| 28 | +# ---------------------------------------------------- |
| 29 | +include $(CORBA_TOP)/vsn.mk |
| 30 | +VSN=$(CORBA_VSN) |
| 31 | +#APPLICATION= |
| 32 | + |
| 33 | +# ---------------------------------------------------- |
| 34 | +# Release directory specification |
| 35 | +# ---------------------------------------------------- |
| 36 | +RELDOC_DIR = "$(RELEASE_PATH)/doc" |
| 37 | + |
| 38 | +# ---------------------------------------------------- |
| 39 | +# Target Specs |
| 40 | +# ---------------------------------------------------- |
| 41 | +INFO_FILES = ../README.md ../COPYRIGHT |
| 42 | + |
| 43 | +TOPDOCDIR=. |
| 44 | + |
| 45 | +# ---------------------------------------------------- |
| 46 | + |
| 47 | +INDEX_FILE = index.html |
| 48 | + |
| 49 | +CSS_PATH=$(ERL_TOP)/lib/erl_docgen/priv/css |
| 50 | + |
| 51 | +CSS_FILES= \ |
| 52 | + $(CSS_PATH)/otp_doc.css \ |
| 53 | + $(CSS_PATH)/highlight.css |
| 54 | + |
| 55 | +JS_PATH=$(ERL_TOP)/lib/erl_docgen/priv/js |
| 56 | + |
| 57 | +HIGHLIGHT_FILES= \ |
| 58 | + $(JS_PATH)/highlight.js \ |
| 59 | + $(JS_PATH)/highlight.pack.js |
| 60 | + |
| 61 | +FLIPMENU_FILES= \ |
| 62 | + $(JS_PATH)/flipmenu/flipmenu.js \ |
| 63 | + $(JS_PATH)/flipmenu/flip_closed.gif \ |
| 64 | + $(JS_PATH)/flipmenu/flip_open.gif \ |
| 65 | + $(JS_PATH)/flipmenu/flip_static.gif |
| 66 | + |
| 67 | + |
| 68 | +IMAGE_FILES=$(ERL_TOP)/lib/erl_docgen/priv/images/erlang-logo.png |
| 69 | +# ---------------------------------------------------- |
| 70 | +# FLAGS |
| 71 | +# ---------------------------------------------------- |
| 72 | +XML_FLAGS += |
| 73 | +DVIPS_FLAGS += |
| 74 | + |
| 75 | +# ---------------------------------------------------- |
| 76 | +# Targets |
| 77 | +# ---------------------------------------------------- |
| 78 | +$(HTMLDIR)/%.gif: %.gif |
| 79 | + $(INSTALL_DATA) $< $@ |
| 80 | + |
| 81 | +docs: pdf html man |
| 82 | + |
| 83 | +pdf: |
| 84 | + |
| 85 | +html: gifs $(INDEX_FILE) |
| 86 | + |
| 87 | +$(INDEX_FILE): $(INDEX_FILE).src |
| 88 | + $(vsn_verbose)sed 's/#corba_base_vsn#/$(VSN)/g' $< > $@ |
| 89 | + |
| 90 | +clean clean_docs: |
| 91 | + $(RM) $(INDEX_FILE) |
| 92 | +man: |
| 93 | + |
| 94 | +gifs: |
| 95 | + |
| 96 | +debug opt: |
| 97 | + |
| 98 | +# ---------------------------------------------------- |
| 99 | +# Release Target |
| 100 | +# ---------------------------------------------------- |
| 101 | +include $(ERL_TOP)/make/otp_release_targets.mk |
| 102 | + |
| 103 | +release_docs_spec: docs |
| 104 | + $(INSTALL_DIR) "$(RELDOC_DIR)" |
| 105 | + $(INSTALL_DATA) $(INDEX_FILE) "$(RELDOC_DIR)" |
| 106 | + $(INSTALL_DATA) $(IMAGE_FILES) "$(RELDOC_DIR)" |
| 107 | + $(INSTALL_DATA) $(CSS_FILES) "$(RELDOC_DIR)" |
| 108 | + $(INSTALL_DIR) "$(RELDOC_DIR)/js/flipmenu" |
| 109 | + $(INSTALL_DATA) $(HIGHLIGHT_FILES) "$(RELDOC_DIR)/js" |
| 110 | + $(INSTALL_DATA) $(FLIPMENU_FILES) "$(RELDOC_DIR)/js/flipmenu" |
| 111 | + $(INSTALL_DATA) $(INFO_FILES) "$(RELEASE_PATH)" |
| 112 | + |
| 113 | +release_spec: |
0 commit comments