Next: , Previous: Initial setup, Up: Getting started   [Contents]


2.2 Building a simple package

To build any package, simply type make in the package’s subdirectory. You can change to the directory with the cd command in the shell, or with the -C option of make. For example, to build the hello package in the gnu/hello subdirectory use:

$ make -C gnu/hello

This will download, unpack, configure and build the hello package. The package will be built in the subdirectory gnu/hello/work.

$ ./gnu/hello/work/hello-2.7/src/hello
Hello, world!