Revision 2834c3e0 Makefile.target

b/Makefile.target
40 40
config-target.h: config-target.h-timestamp
41 41
config-target.h-timestamp: config-target.mak
42 42

  
43
all: $(PROGS)
43
ifdef CONFIG_SYSTEMTAP_TRACE
44
trace: $(QEMU_PROG).stp
45

  
46
$(QEMU_PROG).stp:
47
	$(call quiet-command,sh $(SRC_PATH)/tracetool \
48
		--$(TRACE_BACKEND) \
49
		--bindir $(bindir) \
50
		--target $(TARGET_ARCH) \
51
		-s < $(SRC_PATH)/trace-events > $(QEMU_PROG).stp,"  GEN   $(QEMU_PROG).stp")
52
else
53
trace:
54
endif
55

  
56
all: $(PROGS) trace
44 57

  
45 58
# Dummy command so that make thinks it has done something
46 59
	@true
......
348 361
	$(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS))
349 362
endif
350 363
endif
364
ifdef CONFIG_SYSTEMTAP_TRACE
365
	$(INSTALL_DIR) "$(DESTDIR)$(datadir)/../systemtap/tapset"
366
	$(INSTALL_DATA) $(QEMU_PROG).stp "$(DESTDIR)$(datadir)/../systemtap/tapset"
367
endif
351 368

  
352 369
# Include automatically generated dependency files
353 370
-include $(wildcard *.d */*.d)

Also available in: Unified diff