Commit 2e13a99b authored by Thierry Martinez's avatar Thierry Martinez

make rule for biocham-src.tar.gz

parent 34368b70
......@@ -73,3 +73,39 @@ clean:
- rm biocham_tests
- rm swipl-biocham
- rm swipl-biocham.o
biocham-src.tar.gz: $(MODULES) $(TEST_MODULES) toc.org Makefile
mkdir tmp/
mkdir tmp/biocham/
cp $(MODULES) $(TEST_MODULES) toc.org Makefile swipl-biocham.c \
tmp/biocham/
mkdir tmp/biocham/platform/
mkdir tmp/biocham/platform/Darwin/
cp platform/Darwin/platform.pl tmp/biocham/platform/Darwin/
mkdir tmp/biocham/platform/Linux/
cp platform/Linux/platform.pl tmp/biocham/platform/Linux/
mkdir tmp/biocham/modules/
mkdir tmp/biocham/modules/graphviz/
cp modules/graphviz/graphviz.pl tmp/biocham/modules/graphviz/
cp modules/graphviz/graphviz.plt tmp/biocham/modules/graphviz/
cp modules/graphviz/graphviz_swiprolog.c tmp/biocham/modules/graphviz/
cp modules/graphviz/graphviz_swiprolog.h tmp/biocham/modules/graphviz/
cp modules/graphviz/Makefile tmp/biocham/modules/graphviz/
mkdir tmp/biocham/modules/graphviz/examples/
cp modules/graphviz/examples/* tmp/biocham/modules/graphviz/examples/
mkdir tmp/biocham/modules/sbml/
cp modules/sbml/sbml.pl tmp/biocham/modules/sbml/
cp modules/sbml/sbml.plt tmp/biocham/modules/sbml/
cp modules/sbml/sbml_swiprolog.c tmp/biocham/modules/sbml/
cp modules/sbml/sbml_swiprolog.h tmp/biocham/modules/sbml/
cp modules/sbml/sbml_utils.pl tmp/biocham/modules/sbml/
mkdir tmp/biocham/modules/sbml/examples/
cp modules/sbml/examples/* tmp/biocham/modules/sbml/examples/
tar -czf biocham-src.tar.gz -C tmp/ biocham/
rm -rf tmp/
test-biocham-src: biocham-src.tar.gz
mkdir tmp/
tar -xf biocham-src.tar.gz -C tmp/
make -C tmp/biocham/
rm -rf tmp/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment