summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 94ebf35..8303977 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -4,11 +4,13 @@ man_MANS = \
update-desktop-database.1
install-exec-hook:
+ test -d $(DESTDIR)$(mandir)/man1 || mkdir -p $(DESTDIR)$(mandir)/man1
cd $(DESTDIR)$(mandir)/man1 && \
rm -f desktop-file-edit.1 && \
$(LN_S) -f desktop-file-install.1 desktop-file-edit.1
uninstall-hook:
+ test -d $(DESTDIR)$(mandir)/man1 && \
cd $(DESTDIR)$(mandir)/man1 && \
rm -f desktop-file-edit.1