4cc99aa3df13479cdcb559a80c805fdc08f65309
[virt-p2v.git] / Makefile
1 # $Id$
2
3 #----------------------------------------------------------------------
4 # General configuration
5
6 VERSION  := 0.1
7
8 # i386 images also work on x86-64, so best to stick with i386.
9 ARCH     := i386
10
11 LANG     := en_US.UTF-8
12 KEYBOARD := us
13 TIMEZONE := US/Eastern
14
15 BASEREPO := http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/$(ARCH)/os/
16
17 # Select a suitable HTTP proxy.
18 # The default assumes a local squid proxy.
19 export http_proxy := http://127.0.0.1:3128/
20 export ftp_proxy := http://127.0.0.1:3128/
21
22 #----------------------------------------------------------------------
23
24 all:
25         @echo "make build              Build the live CD ISO"
26         @echo "make boot [ISO=foo.iso] Boot the named ISO (uses qemu)"
27
28 build: livecd-test.ks
29         livecd-creator \
30           --config=$< \
31           --fslabel=virt-p2v-$(VERSION)
32         ls -lhtr *.iso
33
34 ISO     = virt-p2v-$(VERSION).iso
35
36 boot:
37         qemu -m 512 $(ISO)
38
39 livecd-test.ks: livecd-test.ks.in Makefile
40         sed \
41           -e 's|@BASEREPO@|$(BASEREPO)|g' \
42           -e 's|@LANG@|$(LANG)|g' \
43           -e 's|@KEYBOARD@|$(KEYBOARD)|g' \
44           -e 's|@TIMEZONE@|$(TIMEZONE)|g' \
45           < $< > $@