~ubuntu-branches/ubuntu/lucid/erlang/lucid-updates

« back to all changes in this revision

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

  • Committer: Elliot Murphy
  • Date: 2009-12-22 02:56:21 UTC
  • mfrom: (3.3.5 sid)
  • Revision ID: elliot@elliotmurphy.com-20091222025621-qv3rja8gbpiabkbe
Tags: 1:13.b.3-dfsg-2ubuntu1
* Merge with Debian testing; remaining Ubuntu changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to. (LP #438365)
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
* Fixed dialyzer(1) manpage which was placed into section 3 and conflicted
  with dialyzer(3erl).
* New upstream release (it adds a new binary package erlang-erl-docgen).
* Refreshed patches, removed most of emacs.patch which is applied upstream.
* Linked run_test binary from erlang-common-test package to /usr/bin.
* Fixed VCS headers in debian/control.
* Moved from prebuilt manpages to generated from sources. This adds
  erlang-manpages binary package and xsltproc build dependency.

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