build system: silent generation of doc files and qemu-options.h (Jan Kiszka)
[qemu] / Makefile
index 092c108..37c7182 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -144,7 +144,13 @@ endif
 ifdef CONFIG_CURSES
 OBJS+=curses.o
 endif
-OBJS+=vnc.o d3des.o
+OBJS+=vnc.o acl.o d3des.o
+ifdef CONFIG_VNC_TLS
+OBJS+=vnc-tls.o vnc-auth-vencrypt.o
+endif
+ifdef CONFIG_VNC_SASL
+OBJS+=vnc-auth-sasl.o
+endif
 
 ifdef CONFIG_COCOA
 OBJS+=cocoa.o
@@ -168,10 +174,20 @@ sdl.o: sdl.c keymaps.h sdl_keysym.h
 
 sdl.o audio/sdlaudio.o: CFLAGS += $(SDL_CFLAGS)
 
-vnc.o: vnc.c keymaps.h sdl_keysym.h vnchextile.h d3des.c d3des.h
+acl.o: acl.h acl.c
+
+vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
+
+vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
 
 vnc.o: CFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
 
+vnc-tls.o: vnc-tls.c vnc.h
+
+vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
+
+vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
+
 curses.o: curses.c keymaps.h curses_keys.h
 
 bt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS)
@@ -267,25 +283,34 @@ cscope:
 
 # documentation
 %.html: %.texi
-       texi2html -monolithic -number $<
+       $(call quiet-command,texi2html -I=. -monolithic -number $<,"  GEN   $@")
 
 %.info: %.texi
-       makeinfo $< -o $@
+       $(call quiet-command,makeinfo -I . $< -o $@,"  GEN   $@")
 
 %.dvi: %.texi
-       texi2dvi $<
+       $(call quiet-command,texi2dvi -I . $<,"  GEN   $@")
+
+qemu-options.texi: $(SRC_PATH)/qemu-options.hx
+       $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
 
 qemu.1: qemu-doc.texi
-       $(SRC_PATH)/texi2pod.pl $< qemu.pod
-       pod2man --section=1 --center=" " --release=" " qemu.pod > $@
+       $(call quiet-command, \
+         perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
+         pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
+         "  GEN   $@")
 
 qemu-img.1: qemu-img.texi
-       $(SRC_PATH)/texi2pod.pl $< qemu-img.pod
-       pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@
+       $(call quiet-command, \
+         perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
+         pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
+         "  GEN   $@")
 
 qemu-nbd.8: qemu-nbd.texi
-       $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod
-       pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@
+       $(call quiet-command, \
+         perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
+         pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
+         "  GEN   $@")
 
 info: qemu-doc.info qemu-tech.info
 
@@ -293,7 +318,7 @@ dvi: qemu-doc.dvi qemu-tech.dvi
 
 html: qemu-doc.html qemu-tech.html
 
-qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi
+qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi
 
 VERSION ?= $(shell cat VERSION)
 FILE = qemu-$(VERSION)