* Makefile.am (version.texi): Override automake's rule for
[bpt/guile.git] / doc / Makefile.am
index c6d8a7f..e98fae0 100644 (file)
 info_TEXINFOS = data-rep.texi
 data_rep_TEXINFOS = data-rep.texi version.texi
 
+# This rule overrides automake's rule for version.texi.  It causes
+# version.texi to be created even in non-maintainer-mode.
+#
+$(srcdir)/version.texi: stamp-vti
+       @:
+
 EXAMPLE_SMOB_FILES = \
-    ChangeLog Makefile README image-type.c image-type.h myguile.c
+    ChangeLog Makefile README COPYING image-type.c image-type.h myguile.c
+
+OLDFMT = oldfmt.c
 
 dist-hook:
        mkdir $(distdir)/example-smob
-       (dest="`cd $(distdir)/example-smob; pwd`"; \
-         cd $(srcdir)/example-smob; \
+       (cd $(srcdir); \
+        cp $(OLDFMT) $(distdir); \
+        dest="`cd $(distdir)/example-smob; pwd`"; \
+         cd example-smob; \
         cp $(EXAMPLE_SMOB_FILES) $$dest)