3 #----------------------------------------------------------------------
4 # General configuration
8 # i386 images also work on x86-64, so best to stick with i386.
13 TIMEZONE := US/Eastern
15 BASEREPO := http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/$(ARCH)/os/
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/
22 LABEL := virt-p2v-$(VERSION)
24 #----------------------------------------------------------------------
27 @echo "make build Build the live CD ISO"
28 @echo "make boot [ISO=foo.iso] Boot built/named ISO (uses qemu)"
40 qemu -m 512 -cdrom $(ISO)
42 livecd-test.ks: livecd-test.ks.in livecd-post.sh Makefile
44 -e 's|@BASEREPO@|$(BASEREPO)|g' \
45 -e 's|@LANG@|$(LANG)|g' \
46 -e 's|@KEYBOARD@|$(KEYBOARD)|g' \
47 -e 's|@TIMEZONE@|$(TIMEZONE)|g' \
48 < $< | cat - livecd-post.sh > $@
50 livecd-post.sh: livecd-post.sh.in p2v.init virt-p2v.sh Makefile
52 -e '/@P2V.INIT@/ r p2v.init' \
54 -e '/@VIRT-P2V.SH@/ r virt-p2v.sh' \
55 -e '/@VIRT-P2V.SH@/ d' \