Arrange tests in subdirectories.
[virt-what.git] / Makefile.am
index f065cc8..b62738f 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-EXTRA_DIST = virt-what.in virt-what.pod
+AM_CPPFLAGS = -Wall
 
-CLEANFILES = virt-what.1 virt-what.txt
+CLEANFILES = virt-what *~
 
-AM_CPPFLAGS = -Wall
+EXTRA_DIST = virt-what.in virt-what.pod
+
+SUBDIRS = . tests
 
 sbin_SCRIPTS = virt-what
 libexec_PROGRAMS = virt-what-cpuid-helper
+if HOST_CPU_IA64
+libexec_PROGRAMS += virt-what-ia64-xen-rdtsc-test
+endif
+
+if HAVE_POD2MAN
 
+CLEANFILES += virt-what.1 virt-what.txt
 man_MANS = virt-what.1
 
 virt-what.1: virt-what.pod
        pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \
-         $< > $@
-
+         $? > $@
 virt-what.txt: virt-what.pod
-       pod2text $< > $@
-
-TESTS = \
-       tests/test-baremetal.sh \
-       tests/test-esx4.1.sh \
-       tests/test-kvm.sh \
-       tests/test-qemu.sh
-# tests/test-virtualbox.sh \
-# tests/test-xen-dom0.sh \
-# tests/test-xen-domU.sh
+       pod2text $? > $@
+
+endif