6 |
DEFINES+=-D_GNU_SOURCE |
DEFINES+=-D_GNU_SOURCE |
7 |
TOOLS=qemu-mkcow |
TOOLS=qemu-mkcow |
8 |
|
|
9 |
all: dyngen $(TOOLS) qemu-doc.html |
all: dyngen $(TOOLS) qemu-doc.html qemu.1 |
10 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
11 |
make -C $$d $@ || exit 1 ; \ |
make -C $$d $@ || exit 1 ; \ |
12 |
done |
done |
23 |
clean: |
clean: |
24 |
# avoid old build problems by removing potentially incorrect old files |
# avoid old build problems by removing potentially incorrect old files |
25 |
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
26 |
rm -f *.o *.a $(TOOLS) dyngen TAGS |
rm -f *.o *.a $(TOOLS) dyngen TAGS qemu.pod |
27 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
28 |
make -C $$d $@ || exit 1 ; \ |
make -C $$d $@ || exit 1 ; \ |
29 |
done |
done |
37 |
install: all |
install: all |
38 |
mkdir -p $(prefix)/bin |
mkdir -p $(prefix)/bin |
39 |
install -m 755 -s $(TOOLS) $(prefix)/bin |
install -m 755 -s $(TOOLS) $(prefix)/bin |
40 |
|
mkdir -p $(sharedir) |
41 |
|
install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(sharedir) |
42 |
|
mkdir -p $(mandir)/man1 |
43 |
|
install qemu.1 $(mandir)/man1 |
44 |
for d in $(TARGET_DIRS); do \ |
for d in $(TARGET_DIRS); do \ |
45 |
make -C $$d $@ || exit 1 ; \ |
make -C $$d $@ || exit 1 ; \ |
46 |
done |
done |
56 |
qemu-doc.html: qemu-doc.texi |
qemu-doc.html: qemu-doc.texi |
57 |
texi2html -monolithic -number $< |
texi2html -monolithic -number $< |
58 |
|
|
59 |
|
qemu.1: qemu-doc.texi |
60 |
|
./texi2pod.pl $< qemu.pod |
61 |
|
pod2man --section=1 --center=" " --release=" " qemu.pod > $@ |
62 |
|
|
63 |
FILE=qemu-$(shell cat VERSION) |
FILE=qemu-$(shell cat VERSION) |
64 |
|
|
65 |
# tar release (use 'make -k tar' on a checkouted tree) |
# tar release (use 'make -k tar' on a checkouted tree) |