OSDN Git Service

Fix build system documentation example
authorDan Willemsen <dwillemsen@google.com>
Mon, 9 May 2016 02:23:01 +0000 (19:23 -0700)
committerDan Willemsen <dwillemsen@google.com>
Mon, 9 May 2016 02:24:58 +0000 (19:24 -0700)
The input and output file paths were mixed up in this example. Properly
indicate the input file as a dependency.

Change-Id: I71271025c6ce3ef8f82b10aee91fc0c7ae8f2399

core/build-system.html

index bddde6a..95f35ce 100644 (file)
@@ -438,7 +438,7 @@ intermediates:= $(local-generated-sources-dir)
 GEN := $(intermediates)/<font color=red>file.c</font>
 $(GEN): PRIVATE_INPUT_FILE := $(LOCAL_PATH)/<font color=red>input.file</font>
 $(GEN): PRIVATE_CUSTOM_TOOL = <font color=red>cat $(PRIVATE_INPUT_FILE) &gt; $@</font>
-$(GEN): <font color=red>$(LOCAL_PATH)/file.c</font>
+$(GEN): <font color=red>$(LOCAL_PATH)/input.file</font>
        $(transform-generated-source)
 LOCAL_GENERATED_SOURCES += $(GEN)
 </pre>