Generate README and doc/index.html via configure.
[gedcom-parse.git] / Makefile.am
index fc28a10210180bee69bb93a370331e9c4e559477..c0450a2bf35bc6704015371e6a9a521c69ed4cdb 100644 (file)
@@ -1,26 +1,12 @@
 ## Process this file with automake to produce Makefile.in
 # $Id$
 # $Name$
-SUBDIRS = intl ansel gedcom include . t doc po
-INCLUDES = -I $(srcdir)/include
+SUBDIRS = intl iconv utf8 gedcom gom include . t doc data po
 
-pkgdata_DATA = gedcom.enc
-noinst_PROGRAMS = testgedcom
-
-testgedcom_SOURCES = standalone.c
-testgedcom_LDFLAGS = -L gedcom/.libs -lgedcom
-testgedcom_LDADD  = @INTLLIBS@
-
-EXTRA_DIST = $(pkgdata_DATA)
+EXTRA_DIST = Makefile.inc
 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
+include $(top_srcdir)/Makefile.inc
 
-clean-local:
-       rm -f testgedcom.out
+dist-hook:
+       $(replace-VERSION)