From 244153679dcb0f682aa1bc7fcd72ba716ff8b9a2 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Wed, 7 Mar 2018 16:03:01 -0800 Subject: [PATCH] ods: update data automakefile --- ods/data/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ods/data/Makefile.am diff --git a/ods/data/Makefile.am b/ods/data/Makefile.am new file mode 100644 index 0000000..dbd6f14 --- /dev/null +++ b/ods/data/Makefile.am @@ -0,0 +1,12 @@ +pkgdata_DATA = corpus.txt ods-cpp/main.cpp + +corpus.txt: corpus.txt.gz + gzip -d -k $@.gz + +ods-cpp/main.cpp: ods-cpp.tgz + tar xzf ods-cpp.tgz + +ODS_SAMPLE_CODE_URL := http://opendatastructures.org/ods-cpp.tgz +ods-cpp.tgz: + if command -v curl 2>&1 > /dev/null ; then curl -L -O $(ODS_SAMPLE_CODE_URL) ; \ + elif command -v curl 2>&1 > /dev/null ; then wget $(ODS_SAMPLE_CODE_URL) ; fi