chiark / gitweb /
TODO
[autopkgtest.git] / Makefile
index cdb2c0cf9bf06a376b042cccbd9bd2415fbc7a8d..75de23dc2ab7d5d35b1ec61e80a47c4bfba26a15 100644 (file)
--- a/Makefile
+++ b/Makefile
 # See the file CREDITS for a full list of credits information (often
 # 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/autopkgtest
-
-INSTALL =              install
-INSTALL_DIRS =         $(INSTALL) -d
-INSTALL_PROGRAM =      $(INSTALL) -m 0755
-INSTALL_DOC =          $(INSTALL)
-
-programs =     virt-chroot/adt-virt-chroot \
-               runner/adt-run
-
-install:
-       $(INSTALL_DIRS) -d $(bindir) $(docdir) $(man1dir)
+include settings.make
+
+programs =     virt-subproc/adt-virt-chroot \
+               virt-subproc/adt-virt-xenlvm \
+               virt-subproc/adt-virt-null \
+               virt-subproc/adt-virt-schroot \
+               runner/adt-run \
+               runner/adt-testreport-onepackage \
+               runner/adt-testreport-runloop \
+               runner/adt-testreport-cronjob
+
+examples =     runner/onepackage-config \
+               runner/ubuntu-config
+
+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