1 2AUTOMAKE_OPTIONS=foreign 3 4EXTRA_DIST = $(srcdir)/cmake/cython_test.pyx $(srcdir)/pymoab/* $(srcdir)/tests/* 5 6test_files = test_core.py test_hom.py test_scd.py test_range.py test_tag.py test_topo_util.py test_skinner.py 7 8local_install_path = local_inst 9 10all-local: local-install 11 12local-install: 13 (CFLAGS='-w -fPIC' PYTHONPATH=$(PWD)/$(local_install_path)/:$(PYTHONPATH) \ 14 $(PYTHON) setup.py build_ext --inplace) 15 16install-exec-local: all-local 17 $(MKDIR_P) $(DESTDIR)$(pythondir) 18 (PYTHONPATH=$(DESTDIR)$(pythondir):$(PYTHONPATH) $(PYTHON) setup.py install \ 19 --prefix=$(DESTDIR)$(prefix) \ 20 --record $(DESTDIR)$(pythondir)/install_files.txt \ 21 ) 22 23check: all-local 24 cd tests; \ 25 for i in $(test_files); \ 26 do \ 27 (@SLIBENVPATH@=$(abs_top_builddir)/src/.libs/:$(@SLIBENVPATH@) PYTHONPATH=$(abs_builddir)/../pymoab/:$(PYTHONPATH) $(PYTHON) $$i) || exit 1; \ 28 done 29 30clean-local: 31 -rm -rf build pymoab/*.cpp pymoab/__pycache__ pymoab/*.so pymoab/*.pyc tests/*.pyc pymoab.egg-info dist 32 33uninstall: 34 rm -rf $(DESTDIR)$(pythondir)/* 35 36CLEANFILES = tests/quads_test.vtk tests/outfile.h5m tests/write_tag_test.h5m 37