~ubuntu-branches/ubuntu/trusty/libguestfs/trusty

« back to all changes in this revision

Viewing changes to tests/guests/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Hilko Bengen
  • Date: 2012-04-13 20:14:25 UTC
  • mfrom: (15.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20120413201425-28jcqz73eewoq1my
Tags: 1:1.16.18-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# libguestfs test images
 
2
# Copyright (C) 2009-2012 Red Hat Inc.
 
3
#
 
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.
 
8
#
 
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.
 
13
#
 
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.
 
17
 
 
18
include $(top_srcdir)/subdir-rules.mk
 
19
 
 
20
# Old RHEL 5 autoconf doesn't have builddir.
 
21
builddir ?= $(top_builddir)/tests/guests
 
22
 
 
23
EXTRA_DIST = \
 
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
 
38
 
 
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
 
42
 
 
43
CLEANFILES = $(check_DATA) stamp-fedora-md.img
 
44
 
 
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) \
 
50
        SRCDIR=$(srcdir) \
 
51
        LAYOUT=partitions \
 
52
        ../../run $<
 
53
 
 
54
# Make a (dummy) Fedora image using md devices
 
55
fedora-md1.img fedora-md2.img: stamp-fedora-md.img
 
56
 
 
57
stamp-fedora-md.img: guest-aux/make-fedora-img.pl \
 
58
                guest-aux/fedora-name.db \
 
59
                guest-aux/fedora-packages.db
 
60
        rm -f $@
 
61
        TMPDIR=$(top_builddir) \
 
62
        SRCDIR=$(srcdir) \
 
63
        LAYOUT=partitions-md \
 
64
        ../../run $<
 
65
        touch $@
 
66
 
 
67
guest-aux/fedora-name.db: guest-aux/fedora-name.db.txt
 
68
        rm -f $@ $@-t
 
69
        mkdir -p guest-aux
 
70
        $(DB_LOAD) $@-t < $<
 
71
        mv $@-t $@
 
72
 
 
73
guest-aux/fedora-packages.db: guest-aux/fedora-packages.db.txt
 
74
        rm -f $@ $@-t
 
75
        mkdir -p guest-aux
 
76
        $(DB_LOAD) $@-t < $<
 
77
        mv $@-t $@
 
78
 
 
79
# Make a (dummy) Debian image.
 
80
debian.img: guest-aux/make-debian-img.sh
 
81
        TMPDIR=$(top_builddir) \
 
82
        SRCDIR=$(srcdir) \
 
83
        bash $<
 
84
 
 
85
# Make a (dummy) Ubuntu image.
 
86
ubuntu.img: guest-aux/make-ubuntu-img.sh
 
87
        TMPDIR=$(top_builddir) \
 
88
        SRCDIR=$(srcdir) \
 
89
        bash $<
 
90
 
 
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) \
 
95
        SRCDIR=$(srcdir) \
 
96
        bash $<
 
97
 
 
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
 
101
        rm -f $@ $@-t
 
102
        cp guest-aux/minimal-hive $@-t
 
103
        hivexregedit --merge $@-t --prefix 'HKEY_LOCAL_MACHINE\SOFTWARE' $<
 
104
        mv $@-t $@
 
105
 
 
106
guest-aux/windows-system: guest-aux/windows-system.reg
 
107
        rm -f $@ $@-t
 
108
        cp guest-aux/minimal-hive $@-t
 
109
        hivexregedit --merge $@-t --prefix 'HKEY_LOCAL_MACHINE\SYSTEM' $<
 
110
        mv $@-t $@