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>
This commit is contained in:
parent
2725003d45
commit
f154a0489a
2 changed files with 11 additions and 11 deletions
10
Makefile
10
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 $(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 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:
|
uninstall:
|
||||||
-${RM} $(DESTDIR)$(prefix)/bin/passt
|
-${RM} $(DESTDIR)$(prefix)/bin/passt
|
||||||
-${RM} $(DESTDIR)$(prefix)/bin/pasta
|
-${RM} $(DESTDIR)$(prefix)/bin/pasta
|
||||||
-${RM} $(DESTDIR)$(prefix)/bin/qrap
|
-${RM} $(DESTDIR)$(prefix)/bin/qrap
|
||||||
-${RM} $(DESTDIR)$(prefix)/man/man1/passt.1
|
-${RM} $(DESTDIR)$(prefix)/share/man/man1/passt.1
|
||||||
-${RM} $(DESTDIR)$(prefix)/man/man1/pasta.1
|
-${RM} $(DESTDIR)$(prefix)/share/man/man1/pasta.1
|
||||||
-${RM} $(DESTDIR)$(prefix)/man/man1/qrap.1
|
-${RM} $(DESTDIR)$(prefix)/share/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
|
||||||
|
|
|
@ -20,15 +20,15 @@ host prefix=__TEMP__ make install
|
||||||
check [ -f __TEMP__/bin/passt ]
|
check [ -f __TEMP__/bin/passt ]
|
||||||
check [ -h __TEMP__/bin/pasta ]
|
check [ -h __TEMP__/bin/pasta ]
|
||||||
check [ -f __TEMP__/bin/qrap ]
|
check [ -f __TEMP__/bin/qrap ]
|
||||||
check man -M __TEMP__/man -W passt
|
check man -M __TEMP__/share/man -W passt
|
||||||
check man -M __TEMP__/man -W pasta
|
check man -M __TEMP__/share/man -W pasta
|
||||||
check man -M __TEMP__/man -W qrap
|
check man -M __TEMP__/share/man -W qrap
|
||||||
|
|
||||||
test Uninstall
|
test Uninstall
|
||||||
host prefix=__TEMP__ make uninstall
|
host prefix=__TEMP__ make uninstall
|
||||||
check ! [ -f __TEMP__/bin/passt ]
|
check ! [ -f __TEMP__/bin/passt ]
|
||||||
check ! [ -h __TEMP__/bin/pasta ]
|
check ! [ -h __TEMP__/bin/pasta ]
|
||||||
check ! [ -f __TEMP__/bin/qrap ]
|
check ! [ -f __TEMP__/bin/qrap ]
|
||||||
check ! man -M __TEMP__/man -W passt 2>/dev/null
|
check ! man -M __TEMP__/share/man -W passt 2>/dev/null
|
||||||
check ! man -M __TEMP__/man -W pasta 2>/dev/null
|
check ! man -M __TEMP__/share/man -W pasta 2>/dev/null
|
||||||
check ! man -M __TEMP__/man -W qrap 2>/dev/null
|
check ! man -M __TEMP__/share/man -W qrap 2>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue