Added some initial documentation.
[gedcom-parse.git] / doc / Makefile.am
index 4da9c1879df4527ba75d7dbbd31e440c7bfd6d2b..b328f8f693a78200080f7e1e97e87edc9d99382f 100644 (file)
@@ -2,9 +2,15 @@
 # $Id$
 # $Name$
 
-EXTRA_DIST=parser.html
+EXTRA_DIST = index.html usage.html parser.html
+VERSIONED_FILES = index.html
 
 dist-hook:
-       mkdir $(distdir)/images
-       cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png \
-             $(distdir)/images
+       @cd $(distdir); \
+       mkdir images
+       cp -p $(srcdir)/images/schema.obj $(srcdir)/images/schema.png images \
+       for file in $(VERSIONED_FILES); do \
+          sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
+         rm $$file; \
+         mv $$file.new $$file; \
+       done