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/.
7
# Software distributed under the License is distributed on an "AS IS"
8
# basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See
9
# the License for the specific language governing rights and limitations
12
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
# Portions created by Ericsson are Copyright 1999-2000, Ericsson
14
# Utvecklings AB. All Rights Reserved.''
19
include $(ERL_TOP)/make/target.mk
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
22
# ----------------------------------------------------
24
# ----------------------------------------------------
28
# ----------------------------------------------------
29
# Release directory specification
30
# ----------------------------------------------------
31
RELSYSDIR = $(RELEASE_PATH)/lib/docbuilder-$(VSN)
33
# ----------------------------------------------------
35
# ----------------------------------------------------
47
docb_tr_application2html \
49
docb_tr_chapter2html \
54
docb_tr_fileref2html \
70
ERL_FILES= $(MODULES:%=%.erl)
72
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
74
APP_FILE= docbuilder.app
75
APPUP_FILE= docbuilder.appup
76
APP_SRC= $(APP_FILE).src
77
APPUP_SRC= $(APPUP_FILE).src
78
APP_TARGET= $(EBIN)/$(APP_FILE)
79
APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
81
# ----------------------------------------------------
83
# ----------------------------------------------------
86
ERL_COMPILE_FLAGS += -I$(XMERL)/include
88
# ----------------------------------------------------
90
# ----------------------------------------------------
92
debug opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
95
rm -f $(TARGET_FILES) $(APP_TARGET)
98
$(APP_TARGET): $(APP_SRC) ../vsn.mk
99
sed -e 's;%VSN%;$(VSN);' $< > $@
100
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
101
sed -e 's;%VSN%;$(VSN);' $< > $@
105
# ----------------------------------------------------
107
# ----------------------------------------------------
108
include $(ERL_TOP)/make/otp_release_targets.mk
111
$(INSTALL_DIR) $(RELSYSDIR)/src
112
$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)/src
113
$(INSTALL_DIR) $(RELSYSDIR)/ebin
114
$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) $(RELSYSDIR)/ebin