Automake the data files.

This commit is contained in:
2017-12-19 21:53:51 +00:00
parent f1d7bf2957
commit 9bba1bcbd1
8 changed files with 94 additions and 8 deletions

12
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