summaryrefslogtreecommitdiff
path: root/lib/edoc/priv/Makefile
blob: 73c42c05eba867eff56952f670efbf6cdaa5a549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
# Copyright (C) 2004, Ericsson Telecommunications
# Author: Richard Carlsson, Bertil Karlsson 
#
include $(ERL_TOP)/make/target.mk
include $(ERL_TOP)/make/$(TARGET)/otp.mk

# ----------------------------------------------------
# Application version
# ----------------------------------------------------
include ../vsn.mk
include ../../xmerl/vsn.mk
include ../../syntax_tools/vsn.mk


# ----------------------------------------------------
# Release directory specification
# ----------------------------------------------------
RELSYSDIR = $(RELEASE_PATH)/lib/edoc-$(EDOC_VSN)


#
# Common Macros
#

GEN_SCRIPT_SRC = edoc_generate.src
GEN_SCRIPT = edoc_generate
PRIV_FILES = stylesheet.css erlang.png edoc.dtd

debug opt:
	sed -e "s/%EDOC_VSN%/$(EDOC_VSN)/g" \
	    -e "s/%XMERL_VSN%/$(XMERL_VSN)/g" \
	    -e "s/%SYNTAX_TOOLS_VSN%/$(SYNTAX_TOOLS_VSN)/g" \
		$(GEN_SCRIPT_SRC) > $(GEN_SCRIPT)

clean:
	rm -f $(GEN_SCRIPT)
	rm -f core *~

docs:

# ----------------------------------------------------
# Release Target
# ----------------------------------------------------
include $(ERL_TOP)/make/otp_release_targets.mk

release_spec: opt
	$(INSTALL_DIR) "$(RELSYSDIR)/priv"
	$(INSTALL_DATA) $(PRIV_FILES) "$(RELSYSDIR)/priv"
	$(INSTALL_SCRIPT) $(GEN_SCRIPT) "$(RELSYSDIR)/priv"


release_docs_spec: