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>
This commit is contained in:
parent
9df5027129
commit
2725003d45
1 changed files with 9 additions and 9 deletions
18
Makefile
18
Makefile
|
@ -38,17 +38,17 @@ clean:
|
||||||
passt.tar passt.tar.gz *.deb *.rpm
|
passt.tar passt.tar.gz *.deb *.rpm
|
||||||
|
|
||||||
install: passt pasta qrap
|
install: passt pasta qrap
|
||||||
mkdir -p $(prefix)/bin $(prefix)/man/man1
|
mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/man/man1
|
||||||
cp -d passt pasta qrap $(prefix)/bin
|
cp -d passt pasta qrap $(DESTDIR)$(prefix)/bin
|
||||||
cp -d passt.1 pasta.1 qrap.1 $(prefix)/man/man1
|
cp -d passt.1 pasta.1 qrap.1 $(DESTDIR)$(prefix)/man/man1
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
-${RM} $(prefix)/bin/passt
|
-${RM} $(DESTDIR)$(prefix)/bin/passt
|
||||||
-${RM} $(prefix)/bin/pasta
|
-${RM} $(DESTDIR)$(prefix)/bin/pasta
|
||||||
-${RM} $(prefix)/bin/qrap
|
-${RM} $(DESTDIR)$(prefix)/bin/qrap
|
||||||
-${RM} $(prefix)/man/man1/passt.1
|
-${RM} $(DESTDIR)$(prefix)/man/man1/passt.1
|
||||||
-${RM} $(prefix)/man/man1/pasta.1
|
-${RM} $(DESTDIR)$(prefix)/man/man1/pasta.1
|
||||||
-${RM} $(prefix)/man/man1/qrap.1
|
-${RM} $(DESTDIR)$(prefix)/man/man1/qrap.1
|
||||||
|
|
||||||
pkgs:
|
pkgs:
|
||||||
tar cf passt.tar -P --xform 's//\/usr\/bin\//' passt pasta qrap
|
tar cf passt.tar -P --xform 's//\/usr\/bin\//' passt pasta qrap
|
||||||
|
|
Loading…
Reference in a new issue