<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2010-05-18 at 17:14 -0700, Alan Coopersmith wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Gaetan Nadon wrote:
&gt; There are 2 problems which I think have a common cause:
&gt; 
&gt; 'make clean' fails to remove xdmshell.1 which should not have been
&gt; created in the first place.
&gt; 'make distcheck' fails as it encounters xdmshell.1
&gt; 
&gt; I think the root cause is the .cpp suffix rule. However it cannot be
&gt; removed as it used for other targets.
&gt; It might be simpler to copy the design from one of the driver and put
&gt; the man page in a /man subdir
&gt; and renaming files to xdm*.man. It would be consistent with 90% of x.org
&gt; modules. I just did one recently
&gt; for libXft.

Actually, the fix seems to be much simpler:

--- a/Makefile.am
+++ b/Makefile.am
@@ -117,8 +117,8 @@ appman_DATA = $(appman_PRE:man.cpp=@APP_MAN_SUFFIX@)
 noinst_DATA = $(noinst_man_PRE:man.cpp=@APP_MAN_SUFFIX@)

 MAINTAINERCLEANFILES = ChangeLog INSTALL
-CLEANFILES = $(appman_DATA)
-EXTRA_DIST = $(appman_PRE)
+CLEANFILES = $(appman_DATA) $(noinst_man_DATA)
+EXTRA_DIST = $(appman_PRE) $(noinst_man_PRE)

 include $(top_srcdir)/cpprules.in

It may make sense to move the man pages to a subdir for consistency later,
but that didn't fix the issue when I tried it.

</PRE>
</BLOCKQUOTE>
Just moving into a subdir won't fix anything. I was referring to replacing the cpp method with the sed method used in 155 modules. If there is a quick fix in the mean time, perfect.<BR>
<BR>
</BODY>
</HTML>