aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-19 09:50:18 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-20 08:29:30 +0200
commitf154a0489aa99ea48fa89a2724536f4c98815977 (patch)
tree60fa65db97d8287d98323da045cb010e3be30e08
parent2725003d450d6289d9297c05efb57ecd768f3cd4 (diff)
downloadpasst-f154a0489aa99ea48fa89a2724536f4c98815977.tar
passt-f154a0489aa99ea48fa89a2724536f4c98815977.tar.gz
passt-f154a0489aa99ea48fa89a2724536f4c98815977.tar.bz2
passt-f154a0489aa99ea48fa89a2724536f4c98815977.tar.lz
passt-f154a0489aa99ea48fa89a2724536f4c98815977.tar.xz
passt-f154a0489aa99ea48fa89a2724536f4c98815977.tar.zst
passt-f154a0489aa99ea48fa89a2724536f4c98815977.zip
Makefile: Install man pages to /usr/share/man instead of /usr/man
Reported-by: Martin Hauke <mardnh@gmx.de> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile10
-rw-r--r--test/build/install12
2 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 2385afa..6dd22f6 100644
--- a/Makefile
+++ b/Makefile
@@ -38,17 +38,17 @@ clean:
passt.tar passt.tar.gz *.deb *.rpm
install: passt pasta qrap
- mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/man/man1
+ mkdir -p $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/share/man/man1
cp -d passt pasta qrap $(DESTDIR)$(prefix)/bin
- cp -d passt.1 pasta.1 qrap.1 $(DESTDIR)$(prefix)/man/man1
+ cp -d passt.1 pasta.1 qrap.1 $(DESTDIR)$(prefix)/share/man/man1
uninstall:
-${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
+ -${RM} $(DESTDIR)$(prefix)/share/man/man1/passt.1
+ -${RM} $(DESTDIR)$(prefix)/share/man/man1/pasta.1
+ -${RM} $(DESTDIR)$(prefix)/share/man/man1/qrap.1
pkgs:
tar cf passt.tar -P --xform 's//\/usr\/bin\//' passt pasta qrap
diff --git a/test/build/install b/test/build/install
index 0a09fc7..2c93647 100644
--- a/test/build/install
+++ b/test/build/install
@@ -20,15 +20,15 @@ host prefix=__TEMP__ make install
check [ -f __TEMP__/bin/passt ]
check [ -h __TEMP__/bin/pasta ]
check [ -f __TEMP__/bin/qrap ]
-check man -M __TEMP__/man -W passt
-check man -M __TEMP__/man -W pasta
-check man -M __TEMP__/man -W qrap
+check man -M __TEMP__/share/man -W passt
+check man -M __TEMP__/share/man -W pasta
+check man -M __TEMP__/share/man -W qrap
test Uninstall
host prefix=__TEMP__ make uninstall
check ! [ -f __TEMP__/bin/passt ]
check ! [ -h __TEMP__/bin/pasta ]
check ! [ -f __TEMP__/bin/qrap ]
-check ! man -M __TEMP__/man -W passt 2>/dev/null
-check ! man -M __TEMP__/man -W pasta 2>/dev/null
-check ! man -M __TEMP__/man -W qrap 2>/dev/null
+check ! man -M __TEMP__/share/man -W passt 2>/dev/null
+check ! man -M __TEMP__/share/man -W pasta 2>/dev/null
+check ! man -M __TEMP__/share/man -W qrap 2>/dev/null