~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/reltool/doc/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-07 15:07:37 UTC
  • mfrom: (1.2.1 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090507150737-i4yb5elwinm7r0hc
Tags: 1:13.b-dfsg1-1
* Removed another bunch of non-free RFCs from original tarball
  (closes: #527053).
* Fixed build-dependencies list by adding missing comma. This requires
  libsctp-dev again. Also, added libsctp1 dependency to erlang-base and
  erlang-base-hipe packages because the shared library is loaded via
  dlopen now and cannot be added using dh_slibdeps (closes: #526682).
* Weakened dependency of erlang-webtool on erlang-observer to recommends
  to avoid circular dependencies (closes: #526627).
* Added solaris-i386 to HiPE enabled architectures.
* Made script sources in /usr/lib/erlang/erts-*/bin directory executable,
  which is more convenient if a user wants to create a target Erlang system.
* Shortened extended description line for erlang-dev package to make it
  fit 80x25 terminals.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ``The contents of this file are subject to the Erlang Public License,
 
2
#
 
3
# %CopyrightBegin%
 
4
 
5
# Copyright Ericsson AB 2009. All Rights Reserved.
 
6
 
7
# The contents of this file are subject to the Erlang Public License,
 
8
# Version 1.1, (the "License"); you may not use this file except in
 
9
# compliance with the License. You should have received a copy of the
 
10
# Erlang Public License along with this software. If not, it can be
 
11
# retrieved online at http://www.erlang.org/.
 
12
 
13
# Software distributed under the License is distributed on an "AS IS"
 
14
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
15
# the License for the specific language governing rights and limitations
 
16
# under the License.
 
17
 
18
# %CopyrightEnd%
 
19
 
 
20
include $(ERL_TOP)/make/target.mk
 
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
22
 
 
23
# ----------------------------------------------------
 
24
# Application version
 
25
# ----------------------------------------------------
 
26
include ../../vsn.mk
 
27
VSN=$(RELTOOL_VSN)
 
28
 
 
29
# ----------------------------------------------------
 
30
# Include dependency
 
31
# ----------------------------------------------------
 
32
 
 
33
include make.dep
 
34
 
 
35
# ----------------------------------------------------
 
36
# Release directory specification
 
37
# ----------------------------------------------------
 
38
RELSYSDIR = $(RELEASE_PATH)/lib/reltool-$(VSN)
 
39
 
 
40
# ----------------------------------------------------
 
41
# Target Specs
 
42
# ----------------------------------------------------
 
43
 
 
44
include files.mk
 
45
 
 
46
# ----------------------------------------------------
 
47
 
 
48
HTML_FILES = $(XML_APPLICATION_FILES:%.xml=$(HTMLDIR)/%.html) \
 
49
        $(XML_PART_FILES:%.xml=$(HTMLDIR)/%.html)
 
50
 
 
51
INFO_FILE = ../../info
 
52
EXTRA_FILES =  \
 
53
        $(filter-out ../html/note.gif, $(DEFAULT_GIF_FILES)) \
 
54
        $(DEFAULT_HTML_FILES) \
 
55
        $(XML_REF3_FILES:%.xml=$(HTMLDIR)/%.html) \
 
56
        $(XML_CHAPTER_FILES:%.xml=$(HTMLDIR)/%.html)
 
57
 
 
58
MAN3_FILES = $(XML_REF3_FILES:%.xml=$(MAN3DIR)/%.3)
 
59
 
 
60
TEX_FILES_BOOK = \
 
61
        $(BOOK_FILES:%.xml=%.tex)
 
62
TEX_FILES_REF_MAN = $(XML_REF3_FILES:%.xml=%.tex) \
 
63
        $(XML_APPLICATION_FILES:%.xml=%.tex)
 
64
TEX_FILES_USERS_GUIDE = \
 
65
        $(XML_CHAPTER_FILES:%.xml=%.tex)
 
66
 
 
67
TOP_PDF_FILE = reltool-$(VSN).pdf
 
68
 
 
69
TOP_PS_FILE = reltool-$(VSN).ps
 
70
 
 
71
$(TOP_PDF_FILE): book.dvi ../../vsn.mk
 
72
        $(DVI2PS) $(DVIPS_FLAGS) -f $< | $(DISTILL) $(DISTILL_FLAGS) > $@
 
73
 
 
74
$(TOP_PS_FILE): book.dvi ../../vsn.mk
 
75
        $(DVI2PS) $(DVIPS_FLAGS) -f $< > $@
 
76
 
 
77
# ----------------------------------------------------
 
78
# FLAGS 
 
79
# ----------------------------------------------------
 
80
XML_FLAGS += 
 
81
DVIPS_FLAGS += 
 
82
 
 
83
# ----------------------------------------------------
 
84
# Targets
 
85
# ----------------------------------------------------
 
86
$(HTMLDIR)/%.gif: %.gif
 
87
        $(INSTALL_DATA) $< $@
 
88
 
 
89
ifeq ($(DOCTYPE),pdf)
 
90
docs: pdf
 
91
else
 
92
ifeq ($(DOCTYPE),ps)
 
93
docs: ps
 
94
else
 
95
docs: html gifs man
 
96
endif
 
97
endif
 
98
 
 
99
pdf: $(TOP_PDF_FILE)
 
100
 
 
101
ps: $(TOP_PS_FILE)
 
102
 
 
103
html: $(HTML_FILES)
 
104
 
 
105
man: $(MAN3_FILES)
 
106
 
 
107
gifs: $(GIF_FILES:%=$(HTMLDIR)/%)
 
108
 
 
109
debug opt: 
 
110
 
 
111
clean clean_docs clean_tex:
 
112
        rm -f $(TEX_FILES_USERS_GUIDE) $(TEX_FILES_REF_MAN) $(TEX_FILES_BOOK)
 
113
        rm -f $(HTML_FILES) $(MAN3_FILES)
 
114
        rm -f $(TOP_PDF_FILE) $(TOP_PS_FILE)
 
115
        rm -f errs core *~ *xmls_output *xmls_errs $(LATEX_CLEAN) 
 
116
 
 
117
# ----------------------------------------------------
 
118
# Release Target
 
119
# ---------------------------------------------------- 
 
120
include $(ERL_TOP)/make/otp_release_targets.mk
 
121
 
 
122
ifeq ($(DOCTYPE),pdf)
 
123
release_docs_spec: pdf
 
124
        $(INSTALL_DIR) $(RELEASE_PATH)/pdf
 
125
        $(INSTALL_DATA) $(TOP_PDF_FILE) $(RELEASE_PATH)/pdf
 
126
else
 
127
ifeq ($(DOCTYPE),ps)
 
128
release_docs_spec: ps
 
129
        $(INSTALL_DIR) $(RELEASE_PATH)/ps
 
130
        $(INSTALL_DATA) $(TOP_PS_FILE) $(RELEASE_PATH)/ps
 
131
else
 
132
release_docs_spec: docs
 
133
        $(INSTALL_DIR) $(RELSYSDIR)/doc/html
 
134
        $(INSTALL_DATA) $(GIF_FILES) $(EXTRA_FILES) $(HTML_FILES) \
 
135
                $(RELSYSDIR)/doc/html
 
136
        $(INSTALL_DATA) $(INFO_FILE) $(RELSYSDIR)
 
137
        $(INSTALL_DIR) $(RELEASE_PATH)/man/man3
 
138
        $(INSTALL_DATA) $(MAN3_FILES) $(RELEASE_PATH)/man/man3
 
139
endif
 
140
endif
 
141
 
 
142
release_spec:
 
143