mirror of
https://gitlab.com/scemama/EZFIO.git
synced 2024-11-19 04:22:25 +01:00
31 lines
986 B
Plaintext
31 lines
986 B
Plaintext
include version
|
|
|
|
rule build_generated_ninja
|
|
command = python $in ninja
|
|
description = Creating generated.ninja
|
|
generator = 1
|
|
|
|
rule run_ninja
|
|
command = bash -c 'source make.config ; bash -c "$$NINJA -f $in"'
|
|
description = Building Fortran library
|
|
|
|
rule build_archive
|
|
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
|
|
description = Building archive
|
|
|
|
rule clean_all
|
|
command = bash -c 'source make.config ; bash -c "$$NINJA -f $in -t clean ; $$NINJA -t clean" ; rm -rf src/IRPF90_{temp,man} src/*.pyc'
|
|
description = Cleaning directory
|
|
|
|
|
|
build make.config generated.ninja: build_generated_ninja configure.py
|
|
|
|
build all: run_ninja generated.ninja
|
|
default all
|
|
|
|
build EZFIO.${VERSION}.tar.gz: build_archive
|
|
|
|
build archive: phony EZFIO.${VERSION}.tar.gz
|
|
|
|
build clean: clean_all generated.ninja
|