uninstall: Fix to remove everything installed under $(datadir)

Info pages in $(datadir)/empire/info.html/ and the directory
$(datadir)/empire/ aren't removed.  Fix that.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2013-12-26 18:30:50 +01:00
parent e1273ae4ca
commit 78d28c90ad

10
Make.mk
View file

@ -68,9 +68,10 @@ tarball := $(SHELL) -e $(scripts)/tarball
econfig := $(sysconfdir)/empire/econfig
schedule := $(sysconfdir)/empire/schedule
gamedir := $(localstatedir)/empire
builtindir := $(datadir)/empire/builtin
einfodir := $(datadir)/empire/info.nr
ehtmldir := $(datadir)/empire/info.html
edatadir := $(datadir)/empire
builtindir := $(edatadir)/builtin
einfodir := $(edatadir)/info.nr
ehtmldir := $(edatadir)/info.html
client/w32 := arpa/inet.h netdb.h netinet/in.h sys/time.h sys/socket.h \
sys/uio.h unistd.h w32io.c w32sockets.c w32types.h
@ -240,7 +241,8 @@ install-html: html
uninstall:
rm -f $(addprefix $(sbindir)/, $(notdir $(util) $(server)))
rm -f $(addprefix $(bindir)/, $(notdir $(client)))
rm -rf $(builtindir) $(einfodir)
rm -rf $(builtindir) $(einfodir) $(ehtmldir)
rmdir $(edatadir)
rm -f $(addprefix $(mandir)/man6/, $(notdir $(man6)))
@echo "$(dir $(econfig)) and $(gamedir) not removed, you may wish to remove it manually."