1# ``Licensed under the Apache License, Version 2.0 (the "License"); 2# you may not use this file except in compliance with the License. 3# You may obtain a copy of the License at 4# 5# http://www.apache.org/licenses/LICENSE-2.0 6# 7# Unless required by applicable law or agreed to in writing, software 8# distributed under the License is distributed on an "AS IS" BASIS, 9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10# See the License for the specific language governing permissions and 11# limitations under the License. 12# 13# The Initial Developer of the Original Code is Ericsson Utvecklings AB. 14# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings 15# AB. All Rights Reserved.'' 16# 17# $Id$ 18# 19include $(ERL_TOP)/make/target.mk 20include $(ERL_TOP)/make/$(TARGET)/otp.mk 21 22# ---------------------------------------------------- 23# Application version 24# ---------------------------------------------------- 25include ../vsn.mk 26VSN=$(TOOLS_VSN) 27 28# ---------------------------------------------------- 29# Release directory specification 30# ---------------------------------------------------- 31RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(VSN) 32 33# ---------------------------------------------------- 34# Common Macros 35# ---------------------------------------------------- 36 37MAN_FILES= \ 38 tags.3 39 40EMACS_FILES= \ 41 erldoc \ 42 erlang-skels \ 43 erlang-skels-old \ 44 erlang_appwiz \ 45 erlang-start \ 46 erlang-eunit \ 47 erlang-edoc \ 48 erlang-flymake \ 49 erlang-test \ 50 erlang 51 52README_FILES= README 53 54EL_FILES = $(EMACS_FILES:%=%.el) 55 56ELC_FILES = $(EMACS_FILES:%=%.elc) 57 58# ---------------------------------------------------- 59# Targets 60# ---------------------------------------------------- 61 62debug opt: $(TARGET_FILES) $(EL_FILES) 63 64clean: 65 rm -f $(TARGET_FILES) $(ELC_FILES) 66 rm -f errs core *~ 67 68DOC_TARGETS?=man 69 70docs: $(DOC_TARGETS) 71 72# ---------------------------------------------------- 73# Release Target 74# ---------------------------------------------------- 75include $(ERL_TOP)/make/otp_release_targets.mk 76 77release_spec: opt 78 $(INSTALL_DIR) "$(RELSYSDIR)/emacs" 79 $(INSTALL_DATA) $(EL_FILES) $(README_FILES) \ 80 "$(RELSYSDIR)/emacs" 81 82release_man_spec: 83 $(INSTALL_DIR) "$(RELEASE_PATH)/man/man3" 84 $(INSTALL_DATA) $(MAN_FILES) "$(RELEASE_PATH)/man/man3" 85 86release_docs_spec: $(DOC_TARGETS:%=release_%_spec) 87