--- openjade-1.4devel1.orig/jade/Makefile.am
+++ openjade-1.4devel1/jade/Makefile.am
@@ -8,7 +8,7 @@
 	HtmlFOTBuilder.h TeXFOTBuilder.h TransformFOTBuilder.h \
 	MifFOTBuilder.h \
 	JadeMessages.h HtmlMessages.h RtfMessages.h TeXMessages.h \
-	MifMessages.h TmpOutputByteStream.h
+	MifMessages.h TmpOutputByteStream.h MessageModule.cxx
 
 openjade_LDADD = $(top_builddir)/style/libostyle.la \
 	$(top_builddir)/spgrove/libospgrove.la \
@@ -38,7 +38,9 @@
 	TeXFOTBuilder_inst.cxx TransformFOTBuilder_inst.cxx \
 	MifFOTBuilder_inst.cxx
 
-MSGGENFLAGS = -l xModule
+MAINTAINERCLEANFILES = Makefile.in  jade-out.fot
+
+MSGGENFLAGS = -l jadeModule
 
 SUFFIXES = .msg .m4 .rc
 
@@ -46,4 +48,4 @@
 	$(PERL) $(top_srcdir)/instmac.pl $< >$@
 
 %.h %.cxx %.rc: %.msg
-	$(PERL) -w $(top_builddir)/msggen.pl $(MSGGENFLAGS) $<
+	[ ! -f $(top_srcdir)/msggen.pl ] || $(PERL) -w $(top_srcdir)/msggen.pl $(MSGGENFLAGS) $<
