https://github.com/simongog/sdsl-lite
Tip revision: 9c73505beb1b9540a2a96e82bf3bf9579d668408 authored by Simon Gog on 14 May 2014, 00:58:58 UTC
Fixed bug in occurrence statistics program.
Fixed bug in occurrence statistics program.
Tip revision: 9c73505
Make.helper
include ../../Make.helper
../data/%.z.info:
$(eval TC:=../data/$*)
@echo "Get xz-compression ratio for $(TC)"
$(eval TC_XZ:=$(TC).xz)
$(shell xz -9 -z -k -c $(TC) > $(TC_XZ))
$(eval XZ_SIZE:=$(call file_size,$(TC_XZ)))
$(shell rm $(TC_XZ))
@echo "Get gzip-compression ratio for $(TC)"
$(eval TC_GZ:=$(TC).gz)
$(shell gzip -9 -c $(TC) > $(TC_GZ))
$(eval GZ_SIZE:=$(call file_size,$(TC_GZ)))
$(shell rm $(TC_GZ))
$(eval SIZE:=$(call file_size,$(TC)))
$(eval XZ_RATIO:=$(shell echo "scale=2;100*$(XZ_SIZE)/$(SIZE)" | bc -q))
$(eval GZ_RATIO:=$(shell echo "scale=2;100*$(GZ_SIZE)/$(SIZE)" | bc -q))
@echo "xz;$(XZ_RATIO);xz -9\ngzip;$(GZ_RATIO);gzip -9" > $@