chiark / gitweb /
* adt-xenlvm-with-testbed: sleep 1 after xm destroy, which is racy.
[autopkgtest.git] / Makefile
index b78a128e60240655cf3885ebc16583884cc42f2d..9f5c45ccbd1468bcc8c6589d1faba6ad3d00aa94 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-# This file is part of autodebtest
-# autodebtest is a tool for testing Debian binary packages
+# This file is part of autopkgtest
+# autopkgtest is a tool for testing Debian binary packages
 #
-# autodebtest is Copyright (C) 2006 Canonical Ltd.
+# autopkgtest is Copyright (C) 2006 Canonical Ltd.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #
 # See the file CREDITS for a full list of credits information (often
-# installed as /usr/share/doc/autodebtest/CREDITS).
+# installed as /usr/share/doc/autopkgtest/CREDITS).
 
-prefix =       /usr/local
-share =                $(prefix)/share
-bindir =       $(prefix)/bin
-mandir =       $(share)/man
-man1dir =      $(mandir)/man1
-docdir =       $(share)/doc/autodebtest
+include settings.make
 
-INSTALL =              install
-INSTALL_DIRS =         $(INSTALL) -d
-INSTALL_PROGRAM =      $(INSTALL) -m 0755
-INSTALL_DOC =          $(INSTALL)
+programs =     virt-subproc/adt-virt-chroot \
+               virt-subproc/adt-virt-xenlvm \
+               virt-subproc/adt-virt-null \
+               runner/adt-run \
+               runner/adt-testreport-onepackage \
+               runner/adt-testreport-runloop \
+               runner/adt-testreport-cronjob
 
-programs =     virt-chroot/adt-virt-chroot \
-               runner/adt-run
+examples =     runner/onepackage-config \
+               runner/ubuntu-config
 
-install:
-       $(INSTALL_DIRS) -d $(bindir) $(docdir)
+pythonfiles =  virt-subproc/VirtSubproc.py
+
+all:
+       cd xen && $(MAKE)
+
+install-here:
+       $(INSTALL_DIRS) -d $(bindir) $(docdir) $(man1dir) \
+               $(pythondir) $(examplesdir)
        set -e; for f in $(programs); do \
                $(INSTALL_PROGRAM) $$f $(bindir); \
                test ! -f $$f.1 || $(INSTALL_DOC) $$f.1 $(man1dir); \
                done
+       $(INSTALL_DATA) $(pythonfiles) $(pythondir)
        $(INSTALL_DOC) CREDITS debian/changelog $(docdir)
+       $(INSTALL_DOC) doc/README*[!~] $(docdir)
+       $(INSTALL_DOC) $(examples) $(examplesdir)
+
+install: install-here
+       cd xen && $(MAKE) install
+
+clean:
+       cd xen && $(MAKE) clean