Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (16 sloc) 0.451 kB
a267fd8 Create trunk from releases/scribe-2.0
Anthony Giardullo authored
1 #define thrift_template
2 # $(1) : $(2)
3 # $$(THRIFT) $(3) $(4) $(5) $(6) $(7) $(8) $$<
4 #endef
5
6 define thrift_template
32667e1 @cce fix build on systems with Perl > 5.12.0 (Ubuntu 11.10 Oneiric, Mac OS…
cce authored
7 XTARGET := $(shell perl -e '$$_ = $$ARGV[1]; s{^.*/}{}; s{\..*}{}; print "$$ARGV[0]/gen-cpp/$${_}_types.cpp\n"' '$(1)' '$(2)')
a267fd8 Create trunk from releases/scribe-2.0
Anthony Giardullo authored
8
9 ifneq ($$(XBUILT_SOURCES),)
10 XBUILT_SOURCES := $$(XBUILT_SOURCES) $$(XTARGET)
11 else
12 XBUILT_SOURCES := $$(XTARGET)
13 endif
14 $$(XTARGET) : $(2)
15 $$(THRIFT) -o $1 $3 $$<
16 endef
17
18 clean-common:
19 rm -rf gen-*
Something went wrong with that request. Please try again.