diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-19 09:42:08 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-19 09:42:08 +0200 |
commit | 2725003d450d6289d9297c05efb57ecd768f3cd4 (patch) | |
tree | c54a598bce74c8aa49e67294c86b2c61f3cb2c0c /Makefile | |
parent | 9df5027129aa4404ba411dfc2be3eadb3f058faf (diff) | |
download | passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar.gz passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar.bz2 passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar.lz passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar.xz passt-2725003d450d6289d9297c05efb57ecd768f3cd4.tar.zst passt-2725003d450d6289d9297c05efb57ecd768f3cd4.zip |
Makefile: Prefix installation paths with $(DESTDIR)
Martin reports that DESTDIR is ignored in install/uninstall targets,
see also:
https://www.gnu.org/prep/standards/html_node/DESTDIR.html
Reported-by: Martin Hauke <mardnh@gmx.de>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -38,17 +38,17 @@ clean: passt.tar passt.tar.gz *.deb *.rpm install: passt pasta qrap - mkdir -p $(prefix)/bin $(prefix)/man/man1 - cp -d passt pasta qrap $(prefix)/bin - cp -d passt.1 pasta.1 qrap.1 $(prefix)/man/man1 + mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/man/man1 + cp -d passt pasta qrap $(DESTDIR)$(prefix)/bin + cp -d passt.1 pasta.1 qrap.1 $(DESTDIR)$(prefix)/man/man1 uninstall: - -${RM} $(prefix)/bin/passt - -${RM} $(prefix)/bin/pasta - -${RM} $(prefix)/bin/qrap - -${RM} $(prefix)/man/man1/passt.1 - -${RM} $(prefix)/man/man1/pasta.1 - -${RM} $(prefix)/man/man1/qrap.1 + -${RM} $(DESTDIR)$(prefix)/bin/passt + -${RM} $(DESTDIR)$(prefix)/bin/pasta + -${RM} $(DESTDIR)$(prefix)/bin/qrap + -${RM} $(DESTDIR)$(prefix)/man/man1/passt.1 + -${RM} $(DESTDIR)$(prefix)/man/man1/pasta.1 + -${RM} $(DESTDIR)$(prefix)/man/man1/qrap.1 pkgs: tar cf passt.tar -P --xform 's//\/usr\/bin\//' passt pasta qrap |