From 59f28cd388c156b2eb450d0195d7a7a6570caa9e Mon Sep 17 00:00:00 2001
From: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Date: Wed, 11 Nov 2020 12:33:29 +0100
Subject: Fix generating man pages in place
Building the man pages fail in place:
```
make[4]: Entering directory '/<<PKGBUILDDIR>>/ibis/doc'
./ibis_pod2man ibis.pod ibis.1
cp -f ibis.1 ./ibis.1
cp: 'ibis.1' and './ibis.1' are the same file
make[4]: *** [Makefile:569: ibis.1] Error 1
```
Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
---
ibis/doc/Makefile.am | 2 +-
ibmgtsim/doc/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ibis/doc/Makefile.am b/ibis/doc/Makefile.am
index 9f75692..5509865 100644
--- a/ibis/doc/Makefile.am
+++ b/ibis/doc/Makefile.am
@@ -36,4 +36,4 @@ EXTRA_DIST = ibis.pod ibis.1
%.1: @MAINTAINER_MODE_TRUE@ %.pod
$(srcdir)/ibis_pod2man $< $@
- cp -f $@ $(srcdir)/$@
+ if test ! $@ -ef $(srcdir)/$@ ; then cp -f $@ $(srcdir)/$@; fi
diff --git a/ibmgtsim/doc/Makefile.am b/ibmgtsim/doc/Makefile.am
index 24b411c..a9c0237 100644
--- a/ibmgtsim/doc/Makefile.am
+++ b/ibmgtsim/doc/Makefile.am
@@ -39,4 +39,4 @@ EXTRA_DIST = \
%.1: @MAINTAINER_MODE_TRUE@ %.pod
$(srcdir)/ibmgtsim_pod2man $< $@
- cp -f $@ $(srcdir)/$@
+ if test ! $@ -ef $(srcdir)/$@ ; then cp -f $@ $(srcdir)/$@; fi
--
2.25.1