ods: update data automakefile

This commit is contained in:
Kyle Isom 2018-03-07 16:03:01 -08:00
parent 739124392b
commit 244153679d
1 changed files with 12 additions and 0 deletions

12
ods/data/Makefile.am Normal file
View File

@ -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