]> git.ipfire.org Git - thirdparty/iptables.git/commit
build: Fix for failing 'make uninstall'
authorPhil Sutter <phil@nwl.cc>
Tue, 9 Jun 2020 10:40:24 +0000 (12:40 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 9 Jun 2020 17:36:37 +0000 (19:36 +0200)
commit848b4889274edb2ec6ef6218f3d8b55288dc4151
tree66693c314df04685f9afb953e08ba64f64d6fb4f
parentb40b7d976fe144d14421bb441f55ffdc11a4b442
build: Fix for failing 'make uninstall'

Support for uninstalling is severely broken:

- extensions/GNUmakefile.in defines an 'install' target but lacks a
  respective 'uninstall' one, causing 'make uninstall' abort with an
  error message.

- iptables/Makefile.am defines an 'install-exec-hook' to create the
  binary symlinks which are left in place after 'make uninstall'.

Fix these problems by defining respective targets containing code copied
from automake-generated uninstall targets.

While being at it, add a few more uninstall-hooks removing custom
directories created by 'make install' if they are empty afterwards.

Reported-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Tested-by: Richard Guy Briggs <rgb@redhat.com>
extensions/GNUmakefile.in
include/Makefile.am
iptables/Makefile.am
utils/Makefile.am