Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Running make execute make install target in Drake #10

@j-rivero

Description

@j-rivero

When using the Drake CMake wrapper I noticed that running make calls the target install in the build system and in fact installs the files in the specified directory. This is a bit different from the usual functionally of the default target in make (the all target) which restrict its goal to build all the specified artifacts inside a building directory but not in the final file destination.

Since the final goal of the packaging is to run make and make install at some point, the final result could be expected to be the same no matter at which step the files are installed. This is only partially true since the debian packaging and/or the ROS debian packaging use different environment variables and introduce other steps between the call to build (dh_auto_build) and the call to install (dh_auto_install). This generates some problems:

  1. DESTDIR is not available in the call of dh_auto_build since the expected step to handle it is dh_auto_build. The Drake build system uses it just fine but the variable is not present when doing the installation.

  2. There is a clean step between dh_auto_build and dh_auto_install called dh_prep that is removing the installation done in the first step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions