From afff4ef3d064f642e9eddf511b429e7efead3614 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 29 May 2012 23:39:05 +0200 Subject: build: Remove potential `.png' files in $(infodir) before recreating them. * doc/user/Makefile.am (install-data-hook): Remove the symlink's target before creating it. --- doc/user/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am index a9e9448..b2920a5 100644 --- a/doc/user/Makefile.am +++ b/doc/user/Makefile.am @@ -128,7 +128,8 @@ install-data-hook: $(INSTALL_DATA) user-*.html *.png "$(DESTDIR)$(htmldir)" $(MKDIR_P) "$(DESTDIR)$(infodir)" for i in "$(DESTDIR)$(htmldir)/"*.png; do \ - (cd "$(DESTDIR)$(infodir)"; $(LN_S) "$$i"); \ + (cd "$(DESTDIR)$(infodir)"; \ + rm -f "`basename $$i`"; $(LN_S) "$$i"); \ done uninstall-local: -- cgit v1.2.3