AUTOM4TE = autom4te EXTRA_DIST = \ testsuite*.at \ $(TESTSUITE) \ atlocal.in \ molecuider.in \ Analysis \ Atoms \ Domain \ Filling \ Fragmentation \ Graph \ Molecules \ Options \ Parser \ RandomNumbers \ Selection \ Tesselation TESTSUITE = $(srcdir)/testsuite TESTSCRIPTS = \ $(srcdir)/Atoms/testsuite-atoms.at \ $(srcdir)/Atoms/Add/testsuite-atoms-add.at \ $(srcdir)/Atoms/ChangeElement/testsuite-atoms-change-element.at \ $(srcdir)/Atoms/Remove/testsuite-atoms-remove.at \ $(srcdir)/Atoms/RemoveInsideSphere/testsuite-atoms-remove-inside-sphere.at \ $(srcdir)/Atoms/RemoveInsideCuboid/testsuite-atoms-remove-inside-cuboid.at \ $(srcdir)/Atoms/SaveSelectedAtoms/testsuite-atoms-save-selected-atoms.at \ $(srcdir)/Atoms/Translation/testsuite-atoms-translation.at \ $(srcdir)/Analysis/testsuite-analysis.at \ $(srcdir)/Analysis/PairCorrelation/testsuite-analysis-pair-correlation.at \ $(srcdir)/Analysis/PairCorrelation-RangeTest/testsuite-analysis-pair-correlation-range-test.at \ $(srcdir)/Analysis/PointCorrelation/testsuite-analysis-point-correlation.at \ $(srcdir)/Analysis/SurfaceCorrelation/testsuite-analysis-surface-correlation.at \ $(srcdir)/Analysis/PrincipalAxisSystem/testsuite-analysis-principal-axis-system.at \ $(srcdir)/Analysis/AngularDipoleCorrelation-Empty/testsuite-analysis-angular-dipole-correlation-empty.at \ $(srcdir)/Analysis/AngularDipoleCorrelation-DiscreteAngles/testsuite-analysis-angular-dipole-correlation-discrete-angles.at \ $(srcdir)/Domain/testsuite-domain.at \ $(srcdir)/Domain/ChangeBox/testsuite-domain-change-box.at \ $(srcdir)/Domain/CenterInBox/testsuite-domain-center-in-box.at \ $(srcdir)/Domain/AddEmptyBoundary/testsuite-domain-add-empty-boundary.at \ $(srcdir)/Domain/CenterOnEdge/testsuite-domain-center-on-edge.at \ $(srcdir)/Domain/ScaleBox/testsuite-domain-scale-box.at \ $(srcdir)/Domain/RepeatBox/testsuite-domain-repeat-box.at \ $(srcdir)/Filling/testsuite-filling.at \ $(srcdir)/Filling/FillWithMolecule/testsuite-fill-with-molecule.at \ $(srcdir)/Filling/SuspendInWater/testsuite-suspend-in-water.at \ $(srcdir)/Filling/FillVoidWithMolecule/testsuite-fill-void-with-molecule.at \ $(srcdir)/Fragmentation/testsuite-fragmentation.at \ $(srcdir)/Fragmentation/FragmentMolecule/testsuite-fragmentation-fragment-molecule.at \ $(srcdir)/Fragmentation/FragmentMolecule-MaxOrder/testsuite-fragmentation-fragment-molecule-maxorder.at \ $(srcdir)/Graph/testsuite-graph.at \ $(srcdir)/Graph/DepthFirstSearch/testsuite-graph-depth-first-search.at \ $(srcdir)/Graph/SubgraphDissection/testsuite-graph-subgraph-dissection.at \ $(srcdir)/Molecules/testsuite-molecules.at \ $(srcdir)/Molecules/SaveSelectedMolecules/testsuite-molecules-save-selected-molecules.at \ $(srcdir)/Molecules/BondFile/testsuite-molecules-bond-file.at \ $(srcdir)/Molecules/SaveAdjacency/testsuite-molecules-save-adjacency.at \ $(srcdir)/Molecules/SaveBonds/testsuite-molecules-save-bonds.at \ $(srcdir)/Molecules/SaveTemperature/testsuite-molecules-save-temperature.at \ $(srcdir)/Molecules/LinearInterpolationofTrajectories/testsuite-molecules-linear-interpolation-of-trajectories.at \ $(srcdir)/Molecules/VerletIntegration/testsuite-molecules-verlet-integration.at \ $(srcdir)/Molecules/Translation/testsuite-molecules-translation.at \ $(srcdir)/Molecules/Translation-Periodic/testsuite-molecules-translation-periodic.at \ $(srcdir)/Molecules/RotateToPrincipalAxisSystem/testsuite-molecules-rotate-to-principal-axis-system.at \ $(srcdir)/Molecules/RotateAroundOrigin/testsuite-molecules-rotate-around-origin.at \ $(srcdir)/Molecules/RotateAroundSelf/testsuite-molecules-rotate-around-self.at \ $(srcdir)/Molecules/Copy/testsuite-molecules-copy-molecule.at \ $(srcdir)/Options/testsuite-options.at \ $(srcdir)/Options/Verbosity/testsuite-options-verbosity.at \ $(srcdir)/Options/Warranty/testsuite-options-warranty.at \ $(srcdir)/Options/Help/testsuite-options-help.at \ $(srcdir)/Options/ElementsDb/testsuite-options-no-elements-db.at \ $(srcdir)/Options/ElementsDb/testsuite-options-elements-db.at \ $(srcdir)/Options/BondLengthTable/testsuite-options-bond-length-table.at \ $(srcdir)/Options/FastParsing/testsuite-options-fast-parsing.at \ $(srcdir)/Options/SetDefaultName/testsuite-options-set-default-name.at \ $(srcdir)/Options/SetWorldTime/testsuite-options-set-world-time.at \ $(srcdir)/Options/Empty/testsuite-options-empty-configs.at \ $(srcdir)/Options/InvalidCommands/testsuite-options-invalid-commands.at \ $(srcdir)/Parser/testsuite-parser.at \ $(srcdir)/Parser/Mpqc/testsuite-parser-mpqc.at \ $(srcdir)/Parser/Mpqc-SetParameters/testsuite-parser-mpqc-set-parameters.at \ $(srcdir)/Parser/Pcp/testsuite-parser-pcp.at \ $(srcdir)/Parser/Pdb/testsuite-parser-pdb.at \ $(srcdir)/Parser/Tremolo/testsuite-parser-tremolo.at \ $(srcdir)/Parser/Tremolo-Potentials/testsuite-parser-tremolo-potentials.at \ $(srcdir)/Parser/Xyz/testsuite-parser-xyz.at \ $(srcdir)/RandomNumbers/testsuite-randomnumbers.at \ $(srcdir)/RandomNumbers/Distribution/testsuite-set-random-number-distribution.at \ $(srcdir)/RandomNumbers/Engine/testsuite-set-random-number-engine.at \ $(srcdir)/Selection/testsuite-selection.at \ $(srcdir)/Selection/Atoms/testsuite-selection-atoms.at \ $(srcdir)/Selection/Atoms/AllAtoms/testsuite-selection-all-atoms.at \ $(srcdir)/Selection/Atoms/AllAtomsOfMolecule/testsuite-selection-all-atoms-of-molecule.at \ $(srcdir)/Selection/Atoms/AtomByElement/testsuite-selection-atoms-by-element.at \ $(srcdir)/Selection/Atoms/AtomById/testsuite-selection-atom-by-id.at \ $(srcdir)/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-atoms-inside-cuboid.at \ $(srcdir)/Selection/Atoms/AtomsInsideSphere/testsuite-selection-atoms-inside-sphere.at \ $(srcdir)/Selection/Atoms/ClearAtoms/testsuite-selection-clear-atoms.at \ $(srcdir)/Selection/Molecules/testsuite-selection-molecules.at \ $(srcdir)/Selection/Molecules/AllMolecules/testsuite-selection-all-molecules.at \ $(srcdir)/Selection/Molecules/ClearMolecules/testsuite-selection-clear-molecules.at \ $(srcdir)/Selection/Molecules/MoleculeByFormula/testsuite-selection-molecules-by-formula.at \ $(srcdir)/Selection/Molecules/MoleculeById/testsuite-selection-molecule-by-id.at \ $(srcdir)/Selection/Molecules/MoleculeByName/testsuite-selection-molecules-by-name.at \ $(srcdir)/Selection/Molecules/MoleculeByOrder/testsuite-selection-molecule-by-order.at \ $(srcdir)/Selection/Molecules/MoleculeOfAtom/testsuite-selection-atoms-molecules.at \ $(srcdir)/Tesselation/testsuite-tesselation.at \ $(srcdir)/Tesselation/NonConvex/testsuite-tesselation-non-convex-envelope.at \ $(srcdir)/Tesselation/Convex/testsuite-tesselation-convex-envelope.at \ $(srcdir)/Tesselation/BigNonConvex/testsuite-tesselation-big-non-convex-envelope.at \ $(srcdir)/Tesselation/BigConvex/testsuite-tesselation-big-convex-envelope.at max_jobs = 4 check-local: atconfig atlocal package.m4 $(TESTSUITE) nrjobs=; \ for flag in $$MAKEFLAGS; do \ case $$flag in \ --* | =*=) ;; \ *j*) nrjobs="-j$(max_jobs)" ;; \ esac; \ done; \ $(SHELL) '$(TESTSUITE)' $$nrjobs $(TESTSUITEFLAGS) installcheck-local: atconfig atlocal $(TESTSUITE) $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \ $(TESTSUITEFLAGS) clean-local: test ! -f '$(TESTSUITE)' || \ $(SHELL) '$(TESTSUITE)' --clean AUTOTEST = $(AUTOM4TE) --language=autotest $(TESTSUITE): $(srcdir)/testsuite.at $(TESTSCRIPTS) $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at mv $@.tmp $@ # The `:;' works around a Bash 3.2 bug when the output is not writeable. $(srcdir)/package.m4: $(top_srcdir)/configure.ac :;{ \ echo '# Signature of the current package.' && \ echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])' && \ echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])' && \ echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])' && \ echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])' && \ echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \ } >'$(srcdir)/package.m4'