Update ChangeLog.
[erlware-mode.git] / Makefile
blobac0d7fc859d92743bbbee0d0478cceb849f5fa49
1 # ``The contents of this file are subject to the Erlang Public License,
2 # Version 1.1, (the "License"); you may not use this file except in
3 # compliance with the License. You should have received a copy of the
4 # Erlang Public License along with this software. If not, it can be
5 # retrieved via the world wide web at http://www.erlang.org/.
6 #
7 # Software distributed under the License is distributed on an "AS IS"
8 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9 # the License for the specific language governing rights and limitations
10 # under the License.
12 # The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13 # Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14 # AB. All Rights Reserved.''
16 # $Id$
18 include $(ERL_TOP)/make/target.mk
19 include $(ERL_TOP)/make/$(TARGET)/otp.mk
21 # ----------------------------------------------------
22 # Application version
23 # ----------------------------------------------------
24 include ../vsn.mk
25 VSN=$(TOOLS_VSN)
27 # ----------------------------------------------------
28 # Release directory specification
29 # ----------------------------------------------------
30 RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(VSN)
32 # ----------------------------------------------------
33 # Common Macros
34 # ----------------------------------------------------
36 MAN_FILES= \
37 tags.3
39 EMACS_FILES= \
40 erlang-start \
41 erlang
43 README_FILES= README
45 EL_FILES = $(EMACS_FILES:%=%.el)
47 ELC_FILES = $(EMACS_FILES:%=%.elc)
49 # ----------------------------------------------------
50 # Targets
51 # ----------------------------------------------------
53 debug opt: $(TARGET_FILES) $(EL_FILES)
55 clean:
56 rm -f $(TARGET_FILES) $(ELC_FILES)
57 rm -f errs core *~
59 docs:
61 # ----------------------------------------------------
62 # Release Target
63 # ----------------------------------------------------
64 include $(ERL_TOP)/make/otp_release_targets.mk
66 release_spec: opt
67 $(INSTALL_DIR) $(RELSYSDIR)/emacs
68 $(INSTALL_DATA) $(EL_FILES) $(README_FILES) \
69 $(RELSYSDIR)/emacs
71 ifeq ($(DOCTYPE),pdf)
72 release_docs_spec:
73 else
74 ifeq ($(DOCTYPE),ps)
75 release_docs_spec:
76 else
77 release_docs_spec: docs
78 $(INSTALL_DIR) $(RELEASE_PATH)/man/man3
79 $(INSTALL_DATA) $(MAN_FILES) $(RELEASE_PATH)/man/man3
80 endif
81 endif