Revision 153859be Makefile

b/Makefile
238 238

  
239 239
######################################################################
240 240

  
241
qemu-img.o: qemu-img-cmds.h
242

  
241 243
qemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS)
242 244

  
243 245
qemu-nbd$(EXESUF):  qemu-nbd.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS)
......
246 248

  
247 249
qemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz
248 250

  
251
qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
252
	$(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $@")
253

  
249 254
clean:
250 255
# avoid old build problems by removing potentially incorrect old files
251 256
	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
......
257 262
        done
258 263

  
259 264
distclean: clean
260
	rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi
265
	rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi qemu-img-cmds.texi
261 266
	rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
262 267
	for d in $(TARGET_DIRS) libhw32 libhw64; do \
263 268
	rm -rf $$d || exit 1 ; \
......
335 340
qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
336 341
	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
337 342

  
343
qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
344
	$(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@,"  GEN   $@")
345

  
338 346
qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
339 347
	$(call quiet-command, \
340 348
	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
341 349
	  pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
342 350
	  "  GEN   $@")
343 351

  
344
qemu-img.1: qemu-img.texi
352
qemu-img.1: qemu-img.texi qemu-img-cmds.texi
345 353
	$(call quiet-command, \
346 354
	  perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
347 355
	  pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
......
359 367

  
360 368
html: qemu-doc.html qemu-tech.html
361 369

  
362
qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi
370
qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi qemu-img-cmds.texi
363 371

  
364 372
VERSION ?= $(shell cat VERSION)
365 373
FILE = qemu-$(VERSION)

Also available in: Unified diff