aboutsummaryrefslogtreecommitdiffstats
path: root/help/devel/Makefile.am
blob: c5ee7a8e507ca60723c8a342959b521647a85d16 (plain) (blame)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
SUBDIRS = calendar importer executive-summary

# The name of the module.
DOC_MODULE=evolution-devel-guide

# The top-level SGML file.
DOC_MAIN_SGML_FILE=evolution-devel-guide.sgml

HTML_DIR=$(datadir)/gnome/html

TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)

# Add your toplevel files here

content_files =             \
    evolution-devel-guide.sgml  \
    fdl.sgml            \
    preface.sgml            \
    reference.sgml

# Add your module's hand-written and auto-generated files here; these
# are used for dependency tracking.

local_entities =                    \
    calendar/alarm-generation.sgml          \
    calendar/architecture.sgml          \
    calendar/evolution-calendar.sgml        \
    calendar/public-reference.sgml          \
                            \
    calendar/cal-client/sgml/cal-client.sgml    \
                            \
    calendar/cal-util/sgml/cal-component.sgml   \
    calendar/cal-util/sgml/cal-recur.sgml       \
    calendar/cal-util/sgml/cal-util.sgml        \
    calendar/cal-util/sgml/timeutil.sgml        \
                            \
    importer/sgml/evolution-importer.sgml       \
    importer/sgml/evolution-importer-client.sgml    \
                            \
    executive-summary/sgml/executive-summary-component.sgml \
    executive-summary/sgml/executive-summary-component-factory.sgml \
    executive-summary/sgml/executive-summary-component-factory-client.sgml  \
    executive-summary/sgml/executive-summary-html-view.sgml

EXTRA_DIST =            \
    $(content_files)

all: html/index.html

if ENABLE_GTK_DOC
html/index.html: $(content_files) $(local_entities)
    test -d $(srcdir)/html || mkdir $(srcdir)/html
    -cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
else
html/index.html:
endif

clean-local:
    rm -f *~ *.bak *.signals *-unused.txt

maintainer-clean-local:
    cd $(srcdir) && rm -rf html

if ENABLE_GTK_DOC
install-data-local:
    $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
    (installfiles=`echo $(srcdir)/html/*.html`; \
    if test "$$installfiles" = '$(srcdir)/html/*.html'; \
    then echo '-- Nothing to install' ; \
    else \
      for i in $$installfiles; do \
        echo '-- Installing '$$i ; \
        $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
      done; \
      echo '-- Installing $(srcdir)/html/index.sgml' ; \
      $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR); \
      echo '-- Fixing Crossreferences' ; \
      gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(HTML_DIR)|| true; \
    fi)
endif

dist-hook:
    mkdir $(distdir)/html
    -cp $(srcdir)/html/*.html $(srcdir)/html/*.css $(distdir)/html