xref: /libCEED/examples/python/Makefile (revision 7b3ff0698626cc2e5ce463afc10290072fd55c90)
1*7b3ff069SJeremy L Thompson# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and other CEED contributors.
2*7b3ff069SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
3*7b3ff069SJeremy L Thompson#
4*7b3ff069SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause
5*7b3ff069SJeremy L Thompson#
6*7b3ff069SJeremy L Thompson# This file is part of CEED:  http://github.com/ceed
7*7b3ff069SJeremy L Thompson
8*7b3ff069SJeremy L ThompsonPYTHON ?= python3
9*7b3ff069SJeremy L Thompson
10*7b3ff069SJeremy L Thompsonclean:
11*7b3ff069SJeremy L Thompson	rm -rf build __pycache__ .pytest_cache *.so
12*7b3ff069SJeremy L Thompson
13*7b3ff069SJeremy L Thompsonsetup:
14*7b3ff069SJeremy L Thompson	$(PYTHON) setup_qfunctions.py build
15*7b3ff069SJeremy L Thompson
16*7b3ff069SJeremy L ThompsonTEST_OPTS ?= --ceed /cpu/self/ref/serial
17*7b3ff069SJeremy L Thompsontest: setup
18*7b3ff069SJeremy L Thompson	$(PYTHON) -m pytest ex_test.py $(TEST_OPTS)
19*7b3ff069SJeremy L Thompson
20*7b3ff069SJeremy L Thompson.PHONY: clean setup test
21