Package libs in xz

This commit is contained in:
Colin Dellow 2018-07-05 23:08:52 -04:00
parent a52ad9c20c
commit 2732f9885a
1 changed files with 3 additions and 10 deletions

View File

@ -33,7 +33,6 @@ ICU_DATA_LIB=$(ICU)/source/lib/libicudata.a
LZ4_LIB = $(LZ4)/liblz4.a LZ4_LIB = $(LZ4)/liblz4.a
PARQUET_CPP_LIB = $(PARQUET_CPP)/build/$(APACHE_BUILD)/libparquet.a PARQUET_CPP_LIB = $(PARQUET_CPP)/build/$(APACHE_BUILD)/libparquet.a
SNAPPY_LIB = $(SNAPPY)/libsnappy.a SNAPPY_LIB = $(SNAPPY)/libsnappy.a
SQLITE3_LIB = $(SQLITE)/libsqlite3.a
THRIFT_LIB = $(PARQUET_CPP)/thrift_ep/src/thrift_ep-install/lib/libthrift.a THRIFT_LIB = $(PARQUET_CPP)/thrift_ep/src/thrift_ep-install/lib/libthrift.a
ZLIB_LIB = $(ZLIB)/libz.a ZLIB_LIB = $(ZLIB)/libz.a
ZSTD_LIB = $(ZSTD)/libzstd.a ZSTD_LIB = $(ZSTD)/libzstd.a
@ -102,10 +101,7 @@ $(PARQUET_CPP):
$(PARQUET_CPP_LIB): $(PARQUET_CPP) $(ARROW_LIB) $(PARQUET_CPP_LIB): $(PARQUET_CPP) $(ARROW_LIB)
cd $(PARQUET_CPP) && make -j$(CPUS) cd $(PARQUET_CPP) && make -j$(CPUS)
$(SQLITE3_LIB): .PHONY: clean arrow icu parquet publish_libs
cd $(ROOT) && ./build-sqlite
.PHONY: clean arrow icu parquet publish_libs sqlite
clean: clean:
rm -f *.o *.so rm -f *.o *.so
@ -121,8 +117,5 @@ icu: $(ICU_I18N_LIB)
parquet: $(PARQUET_CPP_LIB) parquet: $(PARQUET_CPP_LIB)
publish_libs: publish_libs:
for lib in $(ALL_LIBS); do \ tar -cJf libs.tar.xz $(ALL_LIBS) $(SQLITE)/sqlite3
s3cmd put $$lib s3://cldellow/public/libparquet/$$(lsb_release -s -r)/; \ s3cmd put libs.tar.xz s3://cldellow/public/libparquet/$$(lsb_release -s -r)/libs.tar.xz
done
sqlite: $(SQLITE3_LIB)