Next: , Previous: Setting your environment to use installed packages, Up: Getting started


2.5 Cleaning up and other useful targets

To clean up the build directory and delete any downloaded files, use the clean target:

     $ make -C gnu/hello clean

There are other useful targets. For example, the whole build sequence can be broken down into stages as follows:

     $ make -C gnu/hello fetch checksum extract configure build install

Each target depends on the previous one, so typing make -C gnu/hello install builds all the earlier targets first.

To see some information about the package before downloading it, use the target fetch-list.

     $ make -C gnu/hello fetch-list
     make: Entering directory `/home/gnu/gsrc/gnu/hello'
     Name: hello
     Version: 2.7
     Location: http://ftpmirror.gnu.org/hello/
     Distribution files:
     	hello-2.7.tar.gz
     Patch files:
     Signature files:
     	hello-2.7.tar.gz.sig
     Dependencies:
     make: Leaving directory `/home/gnu/gsrc/gnu/hello'