Separate the modification of GCONV_PATH from the rest of the initialization,
[gedcom-parse.git] / Makefile.am
index 6b284254bbce80755aeb8a06fef4f49e63810b0e..3e5d93c5db1f68356397f48d4f7d3cd30e3f794c 100644 (file)
@@ -1,26 +1,25 @@
 ## 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
+CFLAGS   = -g -O2
 
 pkgdata_DATA = gedcom.enc
 noinst_PROGRAMS = testgedcom
 
-testgedcom_SOURCES = standalone.c
+testgedcom_SOURCES = standalone.c utf8-locale.c
+noinst_HEADERS     = utf8-locale.h
 testgedcom_LDFLAGS = -L gedcom/.libs -lgedcom
 testgedcom_LDADD  = @INTLLIBS@
 
 EXTRA_DIST = $(pkgdata_DATA)
 VERSIONED_FILES = README
 
+include $(top_srcdir)/Makefile.inc
+
 dist-hook:
-       @cd $(distdir); \
-       for file in $(VERSIONED_FILES); do \
-          sed 's/\@VERSION\@/${VERSION}/' $$file > $$file.new; \
-         rm $$file; \
-         mv $$file.new $$file; \
-       done
+       $(replace-VERSION)
 
 clean-local:
        rm -f testgedcom.out