ods: update data automakefile
This commit is contained in:
12
ods/data/Makefile.am
Normal file
12
ods/data/Makefile.am
Normal 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
|
||||||
Reference in New Issue
Block a user