SHELL=/bin/bash
# DIRS=$$(ls -d */)
DIRS=4ti2Interface Gauss ExamplesForHomalg GaussForHomalg GradedModules HomalgToCAS GradedRingForHomalg IO_ForHomalg LocalizeRingForHomalg MatricesForHomalg RingsForHomalg SCO ToolsForHomalg Modules homalg
ECHO=echo
MAKE=make
SINGULAR_PATH=$(shell command -v Singular)
SAGE_PATH=$(shell command -v sage)
M2_PATH=$(shell command -v M2)
MAGMA_PATH=$(shell command -v magma)
MAPLE_PATH=$(shell command -v maple)
all: doc test
docclean:
-for d in $(DIRS); do $(MAKE) -C $$d docclean; done
test: test_4ti2Interface test_Gauss test_ExamplesForHomalg test_GaussForHomalg test_GradedModules test_HomalgToCAS test_GradedRingForHomalg test_IO_ForHomalg test_LocalizeRingForHomalg test_MatricesForHomalg test_RingsForHomalg test_SCO test_Modules test_homalg
build: build_Gauss
ci-prepare:
./ci_prepare
ci-test_homalg_packages: ci-test_4ti2Interface ci-test_Gauss ci-test_ExamplesForHomalg ci-test_GaussForHomalg ci-test_GradedModules ci-test_HomalgToCAS ci-test_GradedRingForHomalg ci-test_IO_ForHomalg ci-test_LocalizeRingForHomalg ci-test_MatricesForHomalg ci-test_RingsForHomalg ci-test_SCO ci-test_Modules ci-test_homalg
ci-test_additional_packages: ci-test_alexander ci-test_CAP_project ci-test_D-Modules ci-test_Sheaves ci-test_VirtualCAS
# ci-test_ToricVarieties: https://github.com/homalg-project/ToricVarieties_project/issues/200
ci-test_test_suite: ci-test_test_suite_ExamplesForHomalg_GAP ci-test_test_suite_ExamplesForHomalg_Macaulay ci-test_test_suite_ExamplesForHomalg_MAGMA ci-test_test_suite_ExamplesForHomalg_maple ci-test_test_suite_ExamplesForHomalg_Singular ci-test_test_suite_Sheaves_MAGMA ci-test_test_suite_Sheaves_Singular
ci-test: ci-test_LoadSheaves ci-test_homalg_packages ci-test_additional_packages ci-test_test_suite
cd .. && homalg_project/gather_performance_data.py
############################################
build_Gauss:
ifndef GAP_HOME
$(error environment variable GAP_HOME is not set)
endif
cd Gauss && ./configure $$GAP_HOME && $(MAKE)
############################################
test_4ti2Interface:
$(MAKE) -C 4ti2Interface test
test_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg test
test_Gauss:
$(MAKE) -C Gauss test
test_GaussForHomalg:
$(MAKE) -C GaussForHomalg test
test_GradedModules:
$(MAKE) -C GradedModules test
test_HomalgToCAS:
$(MAKE) -C HomalgToCAS test
test_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg test
test_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg test
test_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg test
test_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg test
test_RingsForHomalg:
$(MAKE) -C RingsForHomalg test
test_SCO:
$(MAKE) -C SCO test
test_Modules:
$(MAKE) -C Modules test
test_homalg:
$(MAKE) -C homalg test
############################################
ci-test_4ti2Interface:
$(MAKE) -C 4ti2Interface ci-test
ci-test_Gauss: build_Gauss
$(MAKE) -C Gauss ci-test
ci-test_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg ci-test
ci-test_GaussForHomalg:
$(MAKE) -C GaussForHomalg ci-test
ci-test_GradedModules:
$(MAKE) -C GradedModules ci-test
ci-test_HomalgToCAS:
$(MAKE) -C HomalgToCAS ci-test
ci-test_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg ci-test
ci-test_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg ci-test
ci-test_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg ci-test
ci-test_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg ci-test
ci-test_RingsForHomalg:
$(MAKE) -C RingsForHomalg ci-test
ci-test_SCO:
$(MAKE) -C SCO ci-test
ci-test_Modules:
$(MAKE) -C Modules ci-test
ci-test_homalg:
$(MAKE) -C homalg ci-test
############################################
ci-test_LoadSheaves: ci-prepare build
echo 'Assert( 0, LoadPackage( "Sheaves" ) = true );' | gap --quitonbreak
ci-test_alexander: ci-prepare
$(MAKE) -C ../alexander ci-test
ci-test_CAP_project: ci-prepare
/usr/bin/time --quiet --format="%U %S\n%e" --output=../CAP_project/performance.out $(MAKE) -C ../CAP_project ci-test
ci-test_D-Modules: ci-prepare
ifneq ($(MAPLE_PATH),)
$(MAKE) -C ../D-Modules ci-test
endif
ci-test_Sheaves: ci-prepare
$(MAKE) -C ../Sheaves ci-test
ci-test_ToricVarieties: ci-prepare
$(MAKE) -C ../ToricVarieties_project/ToricVarieties ci-test
ci-test_VirtualCAS: ci-prepare
$(MAKE) -C ../VirtualCAS ci-test
############################################
ci-test_test_suite_ExamplesForHomalg_GAP: ci-prepare
ifneq ($(MAPLE_PATH),)
mkdir -p ../test_suite/test_suite_ExamplesForHomalg_GAP; \
cd ../test_suite/test_suite_ExamplesForHomalg_GAP; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../ExamplesForHomalg_GAP.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
ci-test_test_suite_ExamplesForHomalg_Macaulay: ci-prepare
ifneq ($(M2_PATH),)
mkdir -p ../test_suite/test_suite_ExamplesForHomalg_Macaulay; \
cd ../test_suite/test_suite_ExamplesForHomalg_Macaulay; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../ExamplesForHomalg_Macaulay.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
ci-test_test_suite_ExamplesForHomalg_MAGMA: ci-prepare
ifneq ($(MAGMA_PATH),)
mkdir -p ../test_suite/test_suite_ExamplesForHomalg_MAGMA; \
cd ../test_suite/test_suite_ExamplesForHomalg_MAGMA; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../ExamplesForHomalg_MAGMA.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
ci-test_test_suite_ExamplesForHomalg_maple: ci-prepare
ifneq ($(MAPLE_PATH),)
mkdir -p ../test_suite/test_suite_ExamplesForHomalg_maple; \
cd ../test_suite/test_suite_ExamplesForHomalg_maple; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../ExamplesForHomalg_maple.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
ci-test_test_suite_ExamplesForHomalg_Singular: ci-prepare
ifneq ($(SINGULAR_PATH),)
ifneq ($(MAPLE_PATH),)
mkdir -p ../test_suite/test_suite_ExamplesForHomalg_Singular; \
cd ../test_suite/test_suite_ExamplesForHomalg_Singular; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../ExamplesForHomalg_Singular.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
endif
ci-test_test_suite_Sheaves_MAGMA: ci-prepare
ifneq ($(MAGMA_PATH),)
mkdir -p ../test_suite/test_suite_Sheaves_MAGMA; \
cd ../test_suite/test_suite_Sheaves_MAGMA; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../Sheaves_MAGMA.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
ci-test_test_suite_Sheaves_Singular: ci-prepare
ifneq ($(SINGULAR_PATH),)
mkdir -p ../test_suite/test_suite_Sheaves_Singular; \
cd ../test_suite/test_suite_Sheaves_Singular; \
exec 9>&1; \
! /usr/bin/time --quiet --format="%U %S\n%e" --output=performance.out ../Sheaves_Singular.g 2>&1 | tee >(cat - >&9) | grep "No such file or directory\|Could not read file\|Error\|from paragraph\|Diff in" > /dev/null
endif
# BEGIN PACKAGE JANITOR
doc: doc_homalg doc_4ti2Interface doc_ExamplesForHomalg doc_Gauss doc_GaussForHomalg doc_GradedModules doc_GradedRingForHomalg doc_HomalgToCAS doc_IO_ForHomalg doc_LocalizeRingForHomalg doc_MatricesForHomalg doc_Modules doc_RingsForHomalg doc_SCO doc_ToolsForHomalg
doc_homalg:
$(MAKE) -C homalg doc
doc_4ti2Interface:
$(MAKE) -C 4ti2Interface doc
doc_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg doc
doc_Gauss:
$(MAKE) -C Gauss doc
doc_GaussForHomalg:
$(MAKE) -C GaussForHomalg doc
doc_GradedModules:
$(MAKE) -C GradedModules doc
doc_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg doc
doc_HomalgToCAS:
$(MAKE) -C HomalgToCAS doc
doc_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg doc
doc_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg doc
doc_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg doc
doc_Modules:
$(MAKE) -C Modules doc
doc_RingsForHomalg:
$(MAKE) -C RingsForHomalg doc
doc_SCO:
$(MAKE) -C SCO doc
doc_ToolsForHomalg:
$(MAKE) -C ToolsForHomalg doc
# END PACKAGE JANITOR