Move declaration to avoid warning when compiling wo Libxml2
[yaz-moved-to-github.git] / Makefile.am
index 7283653..a00c190 100644 (file)
@@ -1,6 +1,6 @@
 ## This file is part of the YAZ toolkit.
-## Copyright (C) 1995-2007, Index Data, All rights reserved.
-## $Id: Makefile.am,v 1.46 2008-01-14 20:34:14 adam Exp $
+## Copyright (C) Index Data
+## See the file LICENSE for details.
 
 AUTOMAKE_OPTIONS = foreign 
 
@@ -16,19 +16,17 @@ pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = yaz.pc
 
 SPEC_FILE=$(PACKAGE).spec
-EXTRA_DIST=$(SPEC_FILE) README LICENSE NEWS TODO \
+EXTRA_DIST=$(SPEC_FILE) IDMETA README LICENSE NEWS m4/id-config.sh \
        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:
        if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi
-       mkdir $(distdir)/win
+       test -d $(distdir)/win || mkdir $(distdir)/win
        -cp $(srcdir)/win/* $(distdir)/win
-       mkdir $(distdir)/debian
-       cp $(srcdir)/debian/control $(distdir)/debian
-       cp $(srcdir)/debian/changelog $(distdir)/debian
-       cp $(srcdir)/debian/rules $(distdir)/debian
-       cp $(srcdir)/debian/*.postinst $(distdir)/debian
-       cp $(srcdir)/debian/*.install $(distdir)/debian
-       cp $(srcdir)/debian/*.manpages $(distdir)/debian
+
+.PHONY:debian
+debian:
+       dpkg-buildpackage -rfakeroot
+