-## $Id: Makefile.am,v 1.4 2000-02-29 15:52:33 adam Exp $
+## This file is part of the YAZ toolkit.
+## Copyright (C) 1995-2009 Index Data
AUTOMAKE_OPTIONS = foreign
-DIST_SUBDIRS=util odr z39.50 asn ill zutil comstack ccl tab retrieval server lib include client ztest doc
+ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = @SUBDIRS_VAR@
+SUBDIRS = src include util test client ztest zoom doc etc
-noinst_SCRIPTS = yaz-config
-SPEC_FILE=$(PACKAGE).spec
-EXTRA_DIST=$(SPEC_FILE) README LICENSE CHANGELOG TODO windows.txt
+aclocaldir=$(datadir)/aclocal
+
+aclocal_DATA = m4/yaz.m4
-yaz-config:
- @echo "#!/bin/sh" >yaz-config
- @echo "# YAZ settings for developers" >>yaz-config
- @echo "YAZBIN=\"`pwd`/bin\"" >>yaz-config
- @echo "YAZTAB=\"`pwd`/tab\"" >>yaz-config
- @echo "YAZLIB=\"-L`pwd`/lib -lyaz @LIBS@\"" >>yaz-config
- @echo "YAZINC=\"-I`pwd`/include\"" >>yaz-config
- chmod +x yaz-config
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = yaz.pc
+
+SPEC_FILE=$(PACKAGE).spec
+EXTRA_DIST=$(SPEC_FILE) README LICENSE NEWS \
+ yaz-config.in yaz.pc.in m4/yaz.m4 m4/yaz_libxml2.m4 buildconf.sh \
+ Doxyfile.in m4/acx_pthread.m4 m4/ac_check_icu.m4
dist-hook:
- mkdir $(distdir)/win
+ if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi
+ test -d $(distdir)/win || mkdir $(distdir)/win
-cp $(srcdir)/win/* $(distdir)/win
-rpm: $(PACKAGE)-$(VERSION).tar.gz
- cp $(PACKAGE)-$(VERSION).tar.gz /usr/src/redhat/SOURCES
- rpm -ba $(SPEC_FILE)