Pazpar2 1.4.4-2 for squeeze
[pazpar2-moved-to-github.git] / Makefile.am
index 6fd447c..a485e2b 100644 (file)
@@ -1,27 +1,19 @@
+# This file is part of Pazpar2.
 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 = $(PACKAGE).spec README NEWS LICENSE \
+       buildconf.sh Doxyfile.in m4/yaz.m4 \
+       win/makefile win/version.nsi win/version.nsi.in win/license.txt
 
 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
-
-
-cvs2cl:
-       cvs2cl
-
-
-dox:
-       doxygen
-
-showdox:
-       doxygen
-       galeon file:///`pwd`/$(top_srcdir)/dox/html/index.html &
-
-.PHONY: cvs2cl dox showdox
+       if test -x /usr/bin/git -a -d .git; then git log >ChangeLog ; cp ChangeLog $(distdir); fi
+       for d in etc etc/settings etc/services www/test1 www/jsdemo www/iphone; do \
+               mkdir -p $(distdir)/$$d; cp -r $$d/* $(distdir)/$$d; \
+       done; rm -f $(distdir)/etc/pazpar2.cfg; exit 0
+
+.PHONY:debian
+debian:
+       dpkg-buildpackage -rfakeroot