2015-06-02 01:48:43 +02:00
|
|
|
include version
|
|
|
|
|
|
|
|
rule build_generated_ninja
|
2015-06-25 14:59:35 +02:00
|
|
|
command = python configure.py
|
2015-06-02 01:48:43 +02:00
|
|
|
description = Creating generated.ninja
|
|
|
|
|
|
|
|
rule run_ninja
|
2015-06-25 14:59:35 +02:00
|
|
|
command = bash -c 'source .make.config.sh ; $$NINJA -f $in'
|
2015-06-02 15:54:06 +02:00
|
|
|
description = Building Fortran library
|
2015-06-25 14:59:35 +02:00
|
|
|
pool = console
|
2015-06-02 01:48:43 +02:00
|
|
|
|
|
|
|
rule build_archive
|
2015-06-25 14:59:35 +02:00
|
|
|
command = git archive --format=tar HEAD > EZFIO.${VERSION}.tar && mkdir -p EZFIO && cd EZFIO && tar -xvf ../EZFIO.${VERSION}.tar && cd .. && rm EZFIO.${VERSION}.tar && tar -zcvf EZFIO.${VERSION}.tar.gz EZFIO && rm -rf EZFIO
|
2015-06-02 01:48:43 +02:00
|
|
|
description = Building archive
|
|
|
|
|
2015-06-02 15:54:06 +02:00
|
|
|
rule clean_all
|
2015-06-04 00:39:20 +02:00
|
|
|
command = bash -c 'source .make.config.sh ; bash -c "$$NINJA -f $in -t clean ; $$NINJA -t clean" ; rm -rf src/IRPF90_{temp,man} src/*.pyc'
|
2015-06-02 15:54:06 +02:00
|
|
|
description = Cleaning directory
|
|
|
|
|
|
|
|
|
2015-06-25 14:59:35 +02:00
|
|
|
build make.config .make.config.sh generated.ninja impossible_target: build_generated_ninja
|
2015-06-02 01:48:43 +02:00
|
|
|
|
|
|
|
build all: run_ninja generated.ninja
|
2015-06-25 14:59:35 +02:00
|
|
|
|
2015-06-02 01:48:43 +02:00
|
|
|
default all
|
|
|
|
|
|
|
|
build EZFIO.${VERSION}.tar.gz: build_archive
|
|
|
|
|
|
|
|
build archive: phony EZFIO.${VERSION}.tar.gz
|
2015-06-02 15:54:06 +02:00
|
|
|
|
|
|
|
build clean: clean_all generated.ninja
|