Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (21 sloc) 0.606 kB
8e35f3c auto import from //depot/cupcake/@135843
The Android Open Source Project authored
1 ##
2 ##
3 ## Copyright 2008 The Android Open Source Project
4 ##
5
6 ifeq ($(HOST_OS),linux)
7 LOCAL_BISON := $(HOST_OUT_EXECUTABLES)/bison$(HOST_EXECUTABLES_SUFFIX)
8 LOCAL_YACC := $(LOCAL_BISON) -d
9 else
10 LOCAL_YACC := $(YACC)
11 endif
12
13 define local-transform-y-to-cpp
14 @mkdir -p $(dir $@)
15 @echo "WebCore Yacc: $(PRIVATE_MODULE) <= $<"
16 @$(LOCAL_YACC) $(PRIVATE_YACCFLAGS) -o $@ $<
17 @touch $(@:$1=$(YACC_HEADER_SUFFIX))
18 @echo '#ifndef '$(@F:$1=_h) > $(@:$1=.h)
19 @echo '#define '$(@F:$1=_h) >> $(@:$1=.h)
20 @cat $(@:$1=$(YACC_HEADER_SUFFIX)) >> $(@:$1=.h)
21 @echo '#endif' >> $(@:$1=.h)
22 @rm -f $(@:$1=$(YACC_HEADER_SUFFIX))
23 endef
24
Something went wrong with that request. Please try again.