[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] one question on the makefile

From: Wei Yang
Subject: [Qemu-devel] one question on the makefile
Date: Tue, 12 Jun 2012 16:33:23 +0800


I saw a makefile rule which confused.

This is in the tests/Makefile

.PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS))
$(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y)
        $(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
                gtester $(GTESTER_OPTIONS) -m=$(SPEED) 
$(check-qtest-$*-y),"GTESTER $@")

I know the general idea is to create a rule for target such as

There are two colons, usually there is one colon in dependency.

And the result dependency is
check-qtest-x86_64: tests/fdc-test tests/rtc-test tests/cwd-test

It is expanded to the content of check-qtest-x86_64-y.

I searched the googl and makefile manual. Do not find a result.
Could someone give me a hint?

Thanks a lot.

Richard Yang
Help You, Help Me

reply via email to

[Prev in Thread] Current Thread [Next in Thread]