jsdemo included in distribution. It illustrates the use of the js/pz2.js
[pazpar2-moved-to-github.git] / Makefile.am
index 6fd447c..41d7dbe 100644 (file)
@@ -1,17 +1,28 @@
+# $Id: Makefile.am,v 1.13 2007-06-20 14:11:41 adam Exp $
+
 AUTOMAKE_OPTIONS = foreign
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = src doc
+SUBDIRS = src test js doc
 
-EXTRA_DIST = README NEWS buildconf.sh Doxyfile.in m4/yaz.m4 
+EXTRA_DIST = README NEWS LICENSE buildconf.sh Doxyfile.in m4/yaz.m4 
 
 dist-hook:
        if test -x /usr/bin/cvs2cl -a -d CVS; then cvs2cl ; cp ChangeLog $(distdir); fi
        cp -r $(srcdir)/etc $(distdir)
        cvs=`find $(distdir)/etc -name CVS -type d -print`; if test "$$cvs"; then rm -r $$cvs; fi
-       cp -r $(srcdir)/www $(distdir)
-       cvs=`find $(distdir)/www -name CVS -type d -print`; if test "$$cvs"; then rm -r $$cvs; fi
-
+       mkdir -p $(distdir)/www/test1
+       for f in $(srcdir)/www/test1/*; do \
+               test -f $$f && cp $$f $(distdir)/www/test1; \
+       done; exit 0
+       mkdir -p $(distdir)/www/jsdemo
+       for f in $(srcdir)/www/jsdemo/*; do \
+               test -f $$f && cp $$f $(distdir)/www/jsdemo; \
+       done; exit 0
+       mkdir $(distdir)/debian
+       for f in $(srcdir)/debian/*; do \
+               test -f $$f && cp $$f $(distdir)/debian; \
+       done; exit 0
 
 cvs2cl:
        cvs2cl