Extra file with translatable strings: xref.c.
[gedcom-parse.git] / Makefile.am
index c6a2ee6be713470403847baf13b9c406593b1b34..fc28a10210180bee69bb93a370331e9c4e559477 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with automake to produce Makefile.in
 # $Id$
 # $Name$
-SUBDIRS = intl ansel gedcom . t doc include po
+SUBDIRS = intl ansel gedcom include . t doc po
 INCLUDES = -I $(srcdir)/include
 
 pkgdata_DATA = gedcom.enc
@@ -12,6 +12,15 @@ testgedcom_LDFLAGS = -L gedcom/.libs -lgedcom
 testgedcom_LDADD  = @INTLLIBS@
 
 EXTRA_DIST = $(pkgdata_DATA)
+VERSIONED_FILES = README
+
+dist-hook:
+       @cd $(distdir); \
+       for file in $(VERSIONED_FILES); do \
+          sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
+         rm $$file; \
+         mv $$file.new $$file; \
+       done
 
 clean-local:
        rm -f testgedcom.out