summaryrefslogtreecommitdiff
path: root/doc/usage.txt
blob: 991758620673cfd27c4db4f917da9f295081323a (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
55
56
57
58
59
60
61
62
63
64
65
66
67
This module is intended especially for people who want to
develop GNOME Applications outside of the GNOME CVS tree
(of cause, it also works if you develop inside of GNOME CVS).

The idea is to install everything from the `macros/' and
to provide a gnome-autogen.sh script which is similar to
the one from the macros dir.

Basically all we need to do is to make sure that the macros
in the `macros/' dir work with all versions of their package
(I mean, foo.m4 needs to work with all versions of foo).

We only need to re-release gnome-common when any of the
macros have changed which doesn't happen too often.

So, here's what you have to do to use it:

1.) You need to compile and install gnome-common like any
    normal package.

2.) You don't need to have a `macros/' dir in your package,
    this stuff is going to replace it.

3.) In your autogen.sh use this:

    ---
    . `gnome-config --bindir`/gnome-autogen.sh
    ---

    instead of

    ---
    . macros/autogen.sh
    ---

4.) In you configure.in, remove the

    ---
    AM_ACLOCAL_INCLUDE(macros)
    ---

    and replace it with

    ---
    GNOME_COMMON_INIT
    ---

That's it. Now your app uses the macros which are installed
from gnome-common.

[This is only intended for "hackers":

 If you want to use GNOME 2.0, you can use

 ---
 USE_GNOME_2_MACROS=1 . `gnome-config --bindir`/gnome-autogen.sh
 ---

 in your autogen.sh to get rid of the `hack-macros/' dir.
]

Comments, Questions, etc. are welcome :)


May 29, 2000
Martin Baulig <martin@suse.de>