aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-19 09:42:08 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-19 09:42:08 +0200
commit2725003d450d6289d9297c05efb57ecd768f3cd4 (patch)
treec54a598bce74c8aa49e67294c86b2c61f3cb2c0c /Makefile
parent9df5027129aa4404ba411dfc2be3eadb3f058faf (diff)
downloadpasst-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--Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 0697b53..2385afa 100644
--- a/Makefile
+++ b/Makefile
@@ -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