Parse and process cross-references.
[gedcom-parse.git] / doc / Makefile.am
index 4da9c1879df4527ba75d7dbbd31e440c7bfd6d2b..550b6bf7ab8c2dc36033842dca527f03e1de0efa 100644 (file)
@@ -2,9 +2,16 @@
 # $Id$
 # $Name$
 
-EXTRA_DIST=parser.html
+EXTRA_DIST = index.html usage.html parser.html interface.html links.html
+VERSIONED_FILES = index.html
 
 dist-hook:
-       mkdir $(distdir)/images
+       mkdir -p $(distdir)/images;
        cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png \
-             $(distdir)/images
+          $(distdir)/images;
+       cd $(distdir); \
+       for file in $(VERSIONED_FILES); do \
+          sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
+         rm $$file; \
+         mv $$file.new $$file; \
+       done