~ubuntu-branches/ubuntu/quantal/gconf/quantal

« back to all changes in this revision

Viewing changes to doc/gconf/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Takuo KITAME
  • Date: 2002-03-17 01:51:39 UTC
  • Revision ID: james.westby@ubuntu.com-20020317015139-z4f8fdg1hoe049g0
Tags: upstream-1.0.9
ImportĀ upstreamĀ versionĀ 1.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
HTML_DIR=$(datadir)
 
3
 
 
4
# The name of the module.
 
5
DOC_MODULE=gconf
 
6
 
 
7
# The top-level SGML file.
 
8
DOC_MAIN_SGML_FILE=gconf.sgml
 
9
 
 
10
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)/$(MAJOR_VERSION)
 
11
 
 
12
# not sure this will work...
 
13
GTKDOC_LD=$(LIBTOOL) --mode=link $(CC)
 
14
GTKDOC_CC=$(LIBTOOL) --mode=compile $(CC)
 
15
LDFLAGS=$(ORBIT_LIBS) $(GTK_LIBS) $(OAF_LIBS) $(top_builddir)/wrappers/gtk/libgconf-gtk-1.la $(top_builddir)/gconf/libgconf-1.la
 
16
 
 
17
CFLAGS=$(GMODULE_CFLAGS) $(ORBIT_CFLAGS) $(GTK_CFLAGS) $(OAF_CFLAGS) -I$(top_srcdir)/wrappers/gtk -I$(top_srcdir)
 
18
 
 
19
scan:
 
20
        (cd $(srcdir) && env LD="$(GTKDOC_LD)" CC="$(GTKDOC_CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" gtkdoc-scanobj --module=$(DOC_MODULE))
 
21
        gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(top_srcdir)
 
22
 
 
23
templates: scan
 
24
        gtkdoc-mktmpl --module=$(DOC_MODULE)
 
25
 
 
26
sgml:
 
27
        gtkdoc-mkdb --module=$(DOC_MODULE)
 
28
 
 
29
html:
 
30
        if ! test -d html ; then mkdir html ; fi
 
31
        -cd html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
 
32
 
 
33
clean-local:
 
34
        rm -f *~ *.bak *.hierarchy *.signals *.args *-unused.txt
 
35
 
 
36
maintainer-clean-local: clean
 
37
        rm -rf sgml html $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt 
 
38
 
 
39
install-data-local:
 
40
        $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) ## seems ok
 
41
        -$(INSTALL_DATA) $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)
 
42
        -$(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)
 
43
        -gtkdoc-fixxref --module=$(DOC_MODULE) --html-dir=$(DESTDIR)$(HTML_DIR)
 
44
 
 
45
EXTRA_DIST = \
 
46
        $(DOC_MAIN_SGML_FILE) \
 
47
        $(DOC_MODULE)-sections.txt \
 
48
        gconf-decl.txt
 
49
 
 
50
dist-hook:
 
51
        $(mkinstalldirs) $(distdir)/tmpl
 
52
        cp -p $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
 
53
 
 
54
.PHONY : html sgml templates scan
 
55