Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support DESTDIR in install targets #30

Closed
rossburton opened this issue Oct 26, 2020 · 3 comments
Closed

Support DESTDIR in install targets #30

rossburton opened this issue Oct 26, 2020 · 3 comments

Comments

@rossburton
Copy link
Contributor

The idiom for install rules (as per automake, cmake, meson, etc) is that you can set PREFIX=/usr and DESTDIR=/my/build/tree, so that you can install to /my/build/tree/usr/ for packaging.

OpenCSD doesn't support this and currently PREFIX has to be manually extended with the DESTDIR. The moment the build wants to embed the prefix into the binaries, this workaround will fail.

Simply adding $(DESTDIR) before the target paths in the install rule will solve this.

@mikel-armbb
Copy link
Contributor

mikel-armbb commented Oct 28, 2020 via email

@rossburton
Copy link
Contributor Author

The Debian packages also go through hoops to install, this line is working around the same issue: https://salsa.debian.org/wookey/libopencsd/-/blob/dgit/sid/debian/rules#L51

Yes, that change would be sufficient.

@mikel-armbb
Copy link
Contributor

Added to v0.14.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants