1
# libguestfs test images
2
# Copyright (C) 2009-2012 Red Hat Inc.
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 2 of the License, or
7
# (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
include $(top_srcdir)/subdir-rules.mk
20
# Old RHEL 5 autoconf doesn't have builddir.
21
builddir ?= $(top_builddir)/tests/guests
24
guest-aux/make-debian-img.sh \
25
guest-aux/debian-packages \
26
guest-aux/make-fedora-img.pl \
27
guest-aux/fedora-name.db.txt \
28
guest-aux/fedora-name.db \
29
guest-aux/fedora-packages.db.txt \
30
guest-aux/fedora-packages.db \
31
guest-aux/make-ubuntu-img.sh \
32
guest-aux/make-windows-img.sh \
33
guest-aux/windows-software \
34
guest-aux/windows-software.reg \
35
guest-aux/windows-system \
36
guest-aux/windows-system.reg \
37
guest-aux/minimal-hive
39
# This is 'check_DATA' because we don't need it until 'make check'
40
# time and we need the tools we have built in order to make it.
41
check_DATA = debian.img fedora.img fedora-md1.img fedora-md2.img ubuntu.img windows.img
43
CLEANFILES = $(check_DATA) stamp-fedora-md.img
45
# Make a (dummy) Fedora image.
46
fedora.img: guest-aux/make-fedora-img.pl \
47
guest-aux/fedora-name.db \
48
guest-aux/fedora-packages.db
49
TMPDIR=$(top_builddir) \
54
# Make a (dummy) Fedora image using md devices
55
fedora-md1.img fedora-md2.img: stamp-fedora-md.img
57
stamp-fedora-md.img: guest-aux/make-fedora-img.pl \
58
guest-aux/fedora-name.db \
59
guest-aux/fedora-packages.db
61
TMPDIR=$(top_builddir) \
63
LAYOUT=partitions-md \
67
guest-aux/fedora-name.db: guest-aux/fedora-name.db.txt
73
guest-aux/fedora-packages.db: guest-aux/fedora-packages.db.txt
79
# Make a (dummy) Debian image.
80
debian.img: guest-aux/make-debian-img.sh
81
TMPDIR=$(top_builddir) \
85
# Make a (dummy) Ubuntu image.
86
ubuntu.img: guest-aux/make-ubuntu-img.sh
87
TMPDIR=$(top_builddir) \
91
# Make a (dummy) Windows image.
92
windows.img: guest-aux/make-windows-img.sh \
93
guest-aux/windows-software guest-aux/windows-system
94
TMPDIR=$(top_builddir) \
98
# Since users might not have the tools needed to create this, we
99
# also distribute these files.
100
guest-aux/windows-software: guest-aux/windows-software.reg
102
cp guest-aux/minimal-hive $@-t
103
hivexregedit --merge $@-t --prefix 'HKEY_LOCAL_MACHINE\SOFTWARE' $<
106
guest-aux/windows-system: guest-aux/windows-system.reg
108
cp guest-aux/minimal-hive $@-t
109
hivexregedit --merge $@-t --prefix 'HKEY_LOCAL_MACHINE\SYSTEM' $<