Add to git.
[makeplus.git] / INSTALL
1 Installing make+
2 ----------------
3
4 Make+ is entirely self-hosting! But don't worry, it's easy to build and
5 install make+ even if you don't already have make+ installed. Follow the
6 steps below to build, install or make a package.
7
8 1. Quick installation for the impatient:
9
10         MAKEPLUS_HOME=`pwd`; export MAKEPLUS_HOME
11         PATH=$MAKEPLUS_HOME:$PATH
12         ./configure [--prefix=/usr --sysconfdir=/etc]
13         make+
14         su
15         make+ install
16         exit
17         unset MAKEPLUS_HOME
18
19 Step by step instructions follow:
20
21 2. Set the MAKEPLUS_HOME environment variable to point to the make+
22    source files.
23
24    Make sure you are in the unpacked make+ source directory and type:
25
26         MAKEPLUS_HOME=`pwd`
27         export MAKEPLUS_HOME
28
29    If you are using CSH, type:
30
31         setenv MAKEPLUS_HOME `pwd`
32
33    Note that those are backquotes (`) around the pwd.
34
35    To check this, type:
36
37         echo $MAKEPLUS_HOME
38
39    which should show the full path to the unpacked source directory.
40
41    Similarly you also need to update your PATH so that the 'make+'
42    program can be found:
43
44         PATH=$MAKEPLUS_HOME:$PATH
45
46 3. Configure the paths used by make+. Normally you would do:
47
48         ./configure
49
50    This will install make+ entirely under the /usr/local directory. To
51    install under /usr and with the configuration file in /etc, do:
52
53         ./configure --prefix=/usr --sysconfdir=/etc
54
55 4. Run make+ to have it build itself:
56
57         make+
58
59 5. To perform a straightforward install, you'll need to be root (but
60    you don't need to be root yet if all you want to do is build an RPM).
61    To become root, type:
62
63         su
64
65    you will probably be asked for the root password.
66
67 6. Type:
68
69         make+ install
70         exit
71
72 7. If you prefer, you can build an RPM of make+:
73
74         make+ rpm
75
76    The RPM will end up under build-*/makeplus-*.rpm
77
78 8. Remove the MAKEPLUS_HOME environment variable.
79
80         unset MAKEPLUS_HOME