diff options
| author | Roy Marples <roy@marples.name> | 2019-08-28 22:30:52 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-08-28 22:30:52 +0100 |
| commit | e3817d6db34cd0c5dbcd809f2fb615fecb696f89 (patch) | |
| tree | 3b253ae887e8ba971f929dfe711e03425cd2456b /BUILDING.md | |
| parent | f1a67cb7b25c1d7090e1c9303d1b9dba680daa21 (diff) | |
| download | dhcpcd-e3817d6db34cd0c5dbcd809f2fb615fecb696f89.tar.xz | |
build: Allow DESTDIR to work for import as well.
Diffstat (limited to 'BUILDING.md')
| -rw-r--r-- | BUILDING.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/BUILDING.md b/BUILDING.md index 95779511..6779ccec 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -134,16 +134,17 @@ You can decide which polling mechanism dhcpcd will select in eloop like so ## Importing into another source control system -To prepare dhcpcd for import into a platform source tree (like NetBSD) -you can use the make import target to create /tmp/dhcpcd-$version and -populate it with all the source files and hooks needed. +To import the full sources, use the import target. +To import only the needed sources and documentation, use the import-src +target. +Both targets support DESTDIR to set the installation directory, +if unset it defaults to `/tmp/dhcpcd-$VERSION` +Example: `make DESTDIR=/usr/src/contrib/dhcpcd import-src` + In this instance, you may wish to disable some configured tests when the binary has to run on older versions which lack support, such as getline. `./configure --without-getline` -There is also the import-src target which installs just the needed source -files in a specific directory (like DragonFly). -`make DESTDIR=/usr/src/contrib/dhcpcd import-src` ## Hooks Not all the hooks in dhcpcd-hooks are installed by default. |
